Welcome to WebmasterWorld Guest from 184.72.177.182

Forum Moderators: not2easy

Message Too Old, No Replies

color in generic font rule?

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

New User

10+ Year Member

joined:Apr 9, 2003
posts:39
votes: 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
12:09 pm on Apr 9, 2003 (gmt 0)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


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

Hope that helps!

Too fast for me Nick ;)

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

New User

10+ Year Member

joined:Apr 9, 2003
posts:39
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members