[thelist] CSS Inheritance
Toby Mills
toby at tobymills.com
Mon Jan 26 12:31:09 CST 2004
I would say your main problem is the fact you are using tables.
Not only are tables a very inefficient way to format a page, tables are also
inherently bad with CSS support.
But as is try:
table#tariff{padding: 2px 2px 2px 15px;}
T
-------------------------------
toby mills
web developer & programmer
www.tobymills.com
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Chris MacKenzie
Sent: 26 January 2004 17:50
To: Thelist at Lists. Evolt. Org
Subject: [thelist] CSS Inheritance
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
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list