[thelist] CSS Inheritance

Chris MacKenzie cm68 at st-andrews.ac.uk
Mon Jan 26 11:49:44 CST 2004


Hi,

I have a web page which uses css.

I have a main table with an id mainTable and the td tag for the site is set
to padding: 20px;

#mainTable td {padding: 20px;}

The problem is that I want a table inside the main table where I can reset
the padding. Is it possible to do this.

my page is at http://www.thewhinsstandrews.com and the problem area is the
tariff section.

#tariff
{
	width: 50%;
	border-left: 1px solid #C0C0C0;
	border-top: 1px solid #C0C0C0;
	background-color: #FBF4B9;

}

#tariff td
{
 	padding: 2px 2px 2px 15px;
	background-color: cyan;
	white-space: nowrap;
}



regards

====================================
Chris MacKenzie
Software Developer
Business Improvements
University of St Andrews
Butts Wynd
St Andrews, Fife
KY16 9AL
Tel: +44 (0)1334 462541



More information about the thelist mailing list