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

CSS Forum

    
color in generic font rule?
danlott




msg:1189980
 12:03 pm on Apr 9, 2003 (gmt 0)

hi all,
this is my first post about css, so excuse the dumbass!
i've been learning about css-p etc, and have been trying to just set all my font attributes using the generic font keyword...
font: italic small-caps 12px arial
which works fine, but as soon as i try and add a colour to it, say #ff00ff, it just doesnt work. can you specify all font attributes apart from the colour? to make this work, i have to add ...
color: #ff00ff
am i doing something really stupid here?
many thanks
- D

 

Nick_W




msg:1189981
 12:09 pm on Apr 9, 2003 (gmt 0)

Welcome to WebmasterWorld [webmasterworld.com] Danlott,

The color attribute is seperate. More details on Font Control [webmasterworld.com] and Color and Background Properties [webmasterworld.com] from Our Ongoing Crash Course [webmasterworld.com]

Nick

Birdman




msg:1189982
 12:10 pm on Apr 9, 2003 (gmt 0)

Actually, text color is a CSS Text Property [w3schools.com].

Hope that helps!

Too fast for me Nick ;)

danlott




msg:1189983
 12:50 pm on Apr 9, 2003 (gmt 0)

great, thanx guys, that was fast! i love the crash course!
- D

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