cootetom Posted April 25, 2006 Share Posted April 25, 2006 I'm having different results with my css code in different browsers. I have a class in my css file that hides borders etc and have written it like this: .hidden { border: hidden; background-color: transparent; padding: 0;}Now I use this class within the <table> and <td> tags to effectively hide them like this:<table class="hidden"><tr> <td class="hidden">Data goes here</td></tr></table>In firefox i get the results i want i.e. a table with no borders! However this does not work in IE, it just ignores the class and defaults to my normal table styling with borders. Does anyone know why this is and how I can fix it?- Tom Link to comment Share on other sites More sharing options...
johneva Posted April 25, 2006 Share Posted April 25, 2006 Try using.border: 0; Link to comment Share on other sites More sharing options...
fullphaser Posted April 26, 2006 Share Posted April 26, 2006 I'm having different results with my css code in different browsers. I have a class in my css file that hides borders etc and have written it like this:Now I use this class within the <table> and <td> tags to effectively hide them like this:In firefox i get the results i want i.e. a table with no borders! However this does not work in IE, it just ignores the class and defaults to my normal table styling with borders. Does anyone know why this is and how I can fix it?- Tom<{POST_SNAPBACK}> I was under the impression that IE can't infact read the element: hidden; and procedes to ignore anything that is included with the hidden, atleast that is the exprience that I have gotten in the past, as someone suggested I would use border: 0; instead. If you are using this for a :hover, note also that IE can only read a:hover, I have heard that you have to result to Javascritpt/'css hacks' to clear the :hover issues, so... just thought I would add that, because the only time I see the element: hidden; braught up is when there is a hover effect nearby Link to comment Share on other sites More sharing options...
raimo Posted April 26, 2006 Share Posted April 26, 2006 border: none; Link to comment Share on other sites More sharing options...
cootetom Posted April 26, 2006 Author Share Posted April 26, 2006 Thanks for the responses.border: 0; has worked fine. I didn't realise IE doesn't like the hidden keyword! Oh well something learnt at least.- Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now