Click to See Complete Forum and Search --> : Set font for entire page


Duke Will
07-24-2003, 07:34 AM
My IE is using some kind of serif font and I don't like it and it make me wonder about the code on my website I'm working on. Because I've been using Opera and it's showing an Arial font. (Maybe I have preferences set in Opera.)

How do I set the font for the whole page through my website design with HTML? I know basic HTML but I don't know CSS, so if it can be done without CSS, that's what I'd prefer for now. Like, everywhere I have text in paragraphs... just in general, say I want it to default to Arial.

Charles
07-24-2003, 09:17 AM
<head>
<style type="text/css">
<!--
body {font-family:Arial, sans-serif}
-->
</style>
</head>

Duke Will
07-24-2003, 10:07 AM
Thanks, Charles, it worked. I put the STYLE syntax you gave within my HEAD tags. I assume that's what you meant.

spufi
07-24-2003, 12:25 PM
Styles can be defined within three places. One, in a <style> tag that's within the <head> tag. Second, within a tag where you want the duration of the style to last for only what's inside of that tag. Third, and my favorite, put into a file with a .css extension and externally linked in a HTML by using the <link> tag, or using an import statement within a <style> tag that's obviously placed inside a <head> tag.

Duke Will
07-24-2003, 03:07 PM
Well, heck, now I put it on http://www.dukewill.com/notice.html (this page) and it IS working BUT it is displaying the code at the TOP OF THE PAGE. I can't figure it out. It worked when I stuck it in my index.html page. I just wrote this last open with Front Page, if that matters. ALthough, Ican't spot anything weird.



Originally posted by Charles
<head>
<style type="text/css">
<!--
body {font-family:Arial, sans-serif}
-->
</style>
</head>

Da Warriah
07-24-2003, 03:10 PM
it looks as if FrontPage has taken the liberty of inserting it into your page as well...delete this code:

&amp;lt;style type="text/css"&amp;gt; <BR>&amp;lt;!-- <BR>body {font-family:Arial,
sans-serif} <BR>--&amp;gt; <BR>&amp;lt;/style&amp;gt; <BR>

Duke Will
07-24-2003, 03:46 PM
Thanks! I did not spot that.