Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defaut font - font in text box

Status
Not open for further replies.

sodakotahusker

Programmer
Mar 15, 2001
601
Is there way to set the default font attibute for a page - or is IE like the old Ford Company - you can get any color you want as long as you want black? In other words the default font is set by the user for any html page?
So if I want to override the default I have to wrap it in a div or span - or <font> tags?

 
define the font for the body elememnt
Code:
<style type="text/css">
body {
font-color:#ff0000;
/* set other attributes*/
}
</style>

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Thanks. Actually - font-color: does not work. Just color was the ticket.
That saved me a lot of time!!! Thanks again.
 
Do note that changing font-style, size, color, etc for the body of a document does NOT seem to change it everywhere in the document - just in normal textual elements. You will probably still have to code styles for form elements and table data.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
I had a css file which is doing that. Thanks for the heads up though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top