View Full Version : CSS question
TheKman
04-19-2001, 10:36 PM
What tag do you modify in a stylesheet to have all text appear in a certain color/font?
??? { font-family: Arial; color: #FFFFFF; font-weight: bold }
What goes in place of the ???
Dr. Web
04-19-2001, 10:52 PM
body {font-color: red; font-family: tahoma}
TheKman
04-19-2001, 11:02 PM
Thank you!
Dr. Web
04-20-2001, 01:09 AM
sure, anytime!
whkoh
04-21-2001, 04:37 AM
What if multiple styles are needed? e.g.
H1.black {font-color: black; font-family: sans-serif}
H1.blue {font-color: blue; font-family: sans-serif}
They are possible but how do you accomplish the same with BODY tags? You certainly can't have more than 1 pair.
body.black {font-color: black; font-family: sans-serif}
body.blue {font-color: blue; font-family: sans-serif}
Dr. Web
04-21-2001, 05:43 AM
I guess then you could just assign different classes for each. The body.style is just a simple catch all.
TheKman
04-21-2001, 01:11 PM
I thought it was the body tag! But Iwas retro-fitting some pages and the style sheet was clashing with some of the font commands that were already in the page.
I just started playing with CSS and i am finding that I like it for conveinence.
Now, what are the cross browser compatibility issues. What does and doesn't work in IE and NN? I.e. I noticed that NN does not support the hover command.
COBOLdinosaur
04-21-2001, 04:39 PM
Cross-browser issues in CSS are dealt with in a lot of detail here:
http://www.blooberry.com/indexdot/css/index.html
Cd&
Wabanaki Web
05-09-2001, 03:53 PM
This chart might come in handy.
http://www.webreview.com/style/css1/charts/mastergrid.shtml
whkoh
05-10-2001, 05:54 AM
Can anyone show me how to do that(the multiple body tags issue)?
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.