Font Confusion (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


BeTheBall -> Font Confusion (9/2/2005 17:25:38)

Just for the fun of it I created my own style sheet and then told IE to point to it when viewing pages. For testing, I just set the font family nothing else. Here is an example:

body {
font-family: Arial, Helvetica, sans-serif;
}

td {
font-family: Arial, Helvetica, sans-serif;
}

th {
font-family: Arial, Helvetica, sans-serif;
}
p {
font-family: Arial, Helvetica, sans-serif;
}

Curiously, when viewing our Intranet homepage, which uses, don't laugh, Comic Sans, all the fonts change to Arial except those within <p> tags. Why would that be?




bobby -> RE: Font Confusion (9/2/2005 17:49:47)

p {
font-family: Arial, Helvetica, sans-serif;
}

this should alleviate that... I'm not sure why it would be any different, unless you have an inline style declared on the page somewhere (like in FP page properties or an inline style sheet?)

BTW - If you set the font-family in the body you shouldn't have to declare it anywhere else... everything should default up the chain to body, provided you haven't set it to something else somewhere else.





BeTheBall -> RE: Font Confusion (9/2/2005 18:39:59)

quote:

p {
font-family: Arial, Helvetica, sans-serif;
}


Hey Bobby, thanks for the reply, but did you see that the code you posted already exists at the end of my script? I am really puzzled by the fact that everything seems to change to Arial except text and links that occur within <p> tags.




bobby -> RE: Font Confusion (9/2/2005 18:45:08)

yep, sorry... meant to put that in quotes.

It should be changing your <p> tags to Arial. If you're using FP I would double check the page properties and make sure it's not overriding your tags on each page (it would act as an inline style sheet)

syntax looks correct, so I don't know any other reason why it would be a problem...





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875