Jump to content

Override Css Table


Lucas_Tiridath

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...