Jump to content

Override Css Table


Lucas_Tiridath
 Share

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...