Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore Table Tag Style

Status
Not open for further replies.

dfrazell

IS-IT--Management
May 26, 2005
65
US
I inherited a style sheet that changes the style of the Table tag; TABLE {width:100%; border-collapse: collapse;}

This is adversely affecting a new page I’m laying out.

How can I override the style back to a default, as if this style was never declared in the CSS file?

I can use a class selector but I don’t know what the style should look like. Table.TableFmt { }

It is the width:100% that is causing me problems. If I take it out my new page displays correctly but this breaks all the other pages on the web site.
 
{width: auto;} is the default setting of width - just use that in your class css

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Give your table a new class, where you set the width to auto. the class should override the CSS rule for that particular table only.




----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top