Welcome to WebmasterWorld Guest from 54.226.27.104

Forum Moderators: not2easy

Message Too Old, No Replies

color in generic font rule?

     

danlott

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

10+ Year Member



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

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

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



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

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

WebmasterWorld Senior Member 10+ Year Member



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

Hope that helps!

Too fast for me Nick ;)

danlott

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

10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month