Topic: CSS Cascading (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10845" title="Pages that link to Topic: CSS Cascading (Page 1 of 1)" rel="nofollow" >Topic: CSS Cascading <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 10-30-2002 07:09

Hi,

Is it okay to set the font attributes of a table who's class is "xxxx" as in the following style (and expect the TD elements, and other elements found in the "xxxx" table to adhere to these font settings?):

.xxxx {
width:400px;
background:#F8EFB6;
border:solid 1px C8C8C8;
font-family:verdana;
font-size:10px;
color:green;
}

Or, it it necessary to add the style

.xxxx td {
font-family:verdana;
font-size:10px;
color:green;
}

Karl


karl@laketahoegymnasticscamp.com

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 10-30-2002 22:03

If the table is set to class "xxxx", the <td>'s themselves should inherit most of the formatting.

However, a <p> or other such elements might not, depending on whether or not you've defined them elsewhere.

Best bet is to define whatever elements will be in the table -

.xxxx, .xxxx td, .xxxx p, .xxxx ul
{
blah
blah
blah
}

to make sure you've got yourself covered.



Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-30-2002 22:44

It shouldn't be necessary to specify anything for the TD or anything in it, except in NN4 which screws up tables with CSS.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu