praveenhotha Posted June 5, 2007 Share Posted June 5, 2007 I was trying to assign a css class to the table data elements, but the first element is not inheriting the styles from the class properly. Only when I provide a dummy class before the actual class declaration, it gives me the desired result.Why is it so? .Tab3 { } .Tab3 { COLOR: black; position:relative; } #ctl { top:0; left:0; } #ctr { top:0; right:0; } Quote Link to comment https://forums.phpfreaks.com/topic/54237-problem-with-css-class-assignment/ Share on other sites More sharing options...
ToonMariner Posted June 6, 2007 Share Posted June 6, 2007 color should be lowercase... but why not give the table a class (or id) and do this... table.tclass td { color: black; position:relative; } that will save you lots of typing class="xxx" in your html Quote Link to comment https://forums.phpfreaks.com/topic/54237-problem-with-css-class-assignment/#findComment-268884 Share on other sites More sharing options...
praveenhotha Posted June 6, 2007 Author Share Posted June 6, 2007 I changed it to lowercase but its still giving me the same problem.. Quote Link to comment https://forums.phpfreaks.com/topic/54237-problem-with-css-class-assignment/#findComment-268989 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.