karimali831 Posted December 24, 2011 Share Posted December 24, 2011 Am I able to exclude a class? I want the below style for tr, td and table but excluding: td class="title" I tried some research and found: table:not(.title) but this does not work <style> tr, td, table { padding:4px; border-collapse:separate; border-spacing:1px 1px; border-color:#000000; } fieldset, legend { margin:4px; padding:4px; } </style> Any help please? Quote Link to comment https://forums.phpfreaks.com/topic/253798-excluding-class/ Share on other sites More sharing options...
scootstah Posted December 24, 2011 Share Posted December 24, 2011 :not() isn't implemented yet. So, no there is no way. You'll just have to redefine td.title styles. Quote Link to comment https://forums.phpfreaks.com/topic/253798-excluding-class/#findComment-1301149 Share on other sites More sharing options...
karimali831 Posted December 25, 2011 Author Share Posted December 25, 2011 :not() isn't implemented yet. So, no there is no way. You'll just have to redefine td.title styles. I tried td.title { border-spacing:0px 0px; } but it is showing as 1px and 1px in previous code. thanks for help. Quote Link to comment https://forums.phpfreaks.com/topic/253798-excluding-class/#findComment-1301255 Share on other sites More sharing options...
scootstah Posted December 26, 2011 Share Posted December 26, 2011 Make sure you do the td.title style AFTER the td style. Quote Link to comment https://forums.phpfreaks.com/topic/253798-excluding-class/#findComment-1301321 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.