Is there a way to set the a CSS property to be explicitly the same as another CSS property?

J

Joshua Beall

Here is part of a stylesheet I have now:

BODY
{
margin: 5px 5px;
font-family: Arial, Helvetica, Sans Serif;
color: #000000;
font-size: 90%;
background: url("/media/images/layout/back_bluematrix.halo.jpg");
}
TD
{
font-size: 90%;
}

Now, what I would like to happen is just have TD's font-sze to be the same
as whatever the font-size for BODY is. I know I can do BODY, TD and then
list a set of styles, but the problem with that is, then my background does
not tile properly in table cells.

Any help?

-Josh
 
B

Bertilo Wennergren

Joshua said:
BODY
{
margin: 5px 5px;
font-family: Arial, Helvetica, Sans Serif;
color: #000000;
font-size: 90%;
background: url("/media/images/layout/back_bluematrix.halo.jpg");
}
TD
{
font-size: 90%;
}
Now, what I would like to happen is just have TD's font-sze to be the same
as whatever the font-size for BODY is. I know I can do BODY, TD and then
list a set of styles, but the problem with that is, then my background does
not tile properly in table cells.

It seems you're trying to serve CSS to Netscape 4. Don't do that.

Just set the basic font size for "body" (and you'd better use "100%"),
and then hide the CSS from old and stupid browsers, e.g. with the
"@import" trick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top