Lucas_Tiridath Posted December 21, 2009 Share Posted December 21, 2009 Hi,I am working on a website which uses tables to control the layout. I have exported the table attributes to a css file and this works fine. However in two tables, I need a different width property. Is there any way I can override the width property I defined for the table tag in css? I have tried using normal html attributes and an id selector to override the css but it has had no affect at all.Thanks in advance for your help,Laurie Link to comment Share on other sites More sharing options...
Err Posted December 21, 2009 Share Posted December 21, 2009 You can use the style attribute to define specific styles which will override your main CSS. <table class="whatever_class" style="width: 200px;"> <tr> <td>Table</td> </tr></table> Link to comment Share on other sites More sharing options...
Lucas_Tiridath Posted December 21, 2009 Author Share Posted December 21, 2009 Thank you very much, that works great. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.