homepage Welcome to WebmasterWorld Guest from 54.197.110.151
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
changing font attributes in tables with CSS?
theebalinda

10+ Year Member



 
Msg#: 371 posted 10:28 pm on Oct 30, 2002 (gmt 0)

I'm getting an error with a style I'm using:
td.right{background:silver;
font-family:Verdana,Arial;
font-color:'#336699
font-size:12}

and in the body:
<table>
<tr>
<td class="right"></td>

The problem is that the font color will not change; it defaults to black.

Any suggestions/Ideas?

 

bobriggs

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 371 posted 10:34 pm on Oct 30, 2002 (gmt 0)

'

(single quote) after colon.

Also, you need a semicolon after the #336699

Longhaired Genius

10+ Year Member



 
Msg#: 371 posted 11:09 pm on Oct 30, 2002 (gmt 0)

And I think you should put spaces in your stylesheet where a human would expect to see them. This will make it easier to read and errors will be easier to spot.

When I find myself leaving out tabs and spaces in a stlyesheet I know it's time for a break.

piskie

10+ Year Member



 
Msg#: 371 posted 11:34 pm on Oct 30, 2002 (gmt 0)

Assigning a class means you only need to define the class and not the tag it is applied to.

td.right {
becomes
.right {

You can then apply the class="right" to any appropriate tag.

theebalinda

10+ Year Member



 
Msg#: 371 posted 6:51 pm on Nov 11, 2002 (gmt 0)

Hi Everyone;
thanks for your replies.
I figured out the problem:
to change the color of the font the code is:

{color}
not {font-color}

Nick_W

WebmasterWorld Senior Member nick_w us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 371 posted 6:59 pm on Nov 11, 2002 (gmt 0)

hehe, funny no one noticed that, I sure missed it ;)

Nick

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved