Click to See Complete Forum and Search --> : Change Font?


No MeRcY
06-20-2003, 01:43 AM
How would you change your font text, like from Times New Roman to Brooklyn Kid? I am a newbie....please help me!:confused:

Khalid Ali
06-20-2003, 02:17 AM
if you want to do it programattically or in html then use
css
font-family property

ele you could do that on the browsers settings as well

PeOfEo
06-20-2003, 03:17 PM
well to have a section of font be different you would use <font face="thefont">the text</font> But if its a font like the one you mentioned most people do not have that font on their computer so you would need to provide alternates for us.

moreta
06-20-2003, 03:24 PM
You can do it on the fly like this:

<P style="font-family:Brooklyn Kid, Times, serif">whatever... </p>

First choice of font would be Brooklyn Kid. If it's not available, next choice will be Times. Last choice will be serif.

Charles
06-20-2003, 03:43 PM
That should be <P style="font-family:'Brooklyn Kid', Times, serif">whatever... </P>.

PeOfEo
06-20-2003, 10:35 PM
you can also say <font face="font1,font2,font3">bla bla bla</font> or you can go ahead and use a class in your head

<style type="text/css">
.font
{
color: #ffffff;
font-size: 10px;
font-family: micrsoft sans serif, otherfont, otherfont
}
</style>


and say <p class="font">the text</p>
oh wow we have succesfully discovered many ways to acheive the same affect. Did we miss any?

Charles
06-21-2003, 04:33 AM
Originally posted by PeOfEo
<font face="font1,font2,font3">bla bla bla</font> The FONT element was depricated, that is to say we were officially asked to not use it, back in 1997.

PeOfEo
06-21-2003, 10:51 AM
But it still works, and many people still use it. I dont understand why it was phased out, whats wrong with it why do they want you to use css for that?

Charles
06-21-2003, 12:03 PM
Originally posted by PeOfEo
I don[']t understand why it was phased out, whats wrong with it why do they want you to use css for that? So that we could have web pages that work on all browsers. Suppose you want to indicate that some text is "a fragment of computer code." <font face="monospace">print "Hello, World!\n"</font>. That works fine on a graphical browser and is valid in HTML 3.2 (http://www.w3.org/TR/REC-html32). But important information is lost on non-graphical browsers such as text-only, audio and Braille browsers. HTML 4.01 (http://www.w3.org/TR/html4/) depricated pretty much everything related strictly to presentation. The idea is for you to mark up that example thusly <code>print "Hello, World!\n"</code>. And if you like, you can control the font of you CODE elements with CSS, code {font-family:'Andale Mono', monospace}. Now some people, and WYSIWYGs, try to get away with <span style="font-family:'Andale Mono', monospace">print "Hello, World!\n"</span> essentially aping the FONT element. While this is strictly speaking valid HTML 4.01 it violates the spirit of the specification. And it won't work on older browsers that do not understand CSS and it will not work on non-graphical browsers.

PeOfEo
06-21-2003, 12:09 PM
So its for the lynx people eh. I get it. But why must you pick on my punctuation? :(

Charles
06-21-2003, 12:13 PM
Originally posted by PeOfEo
So its for the [L]ynx people eh. I get it.More importantly, it's for the users of Braille and audio browsers.

PeOfEo
06-21-2003, 12:17 PM
Now you are picking on my capitalization. :mad: Next it will be spelling or typos I bet!

David Harrison
06-22-2003, 12:10 PM
Now some people, and WYSIWYGs, try to get away with <span style="font-family:'Andale Mono', monospace">print "Hello, World!\n"</span> essentially aping the FONT element.

I code solely with Notepad, but I do with div's what you said not to do with span's. Is that OK or is that bad as well. If it is wrong, would it be OK to use headers (<h1>, <h2>, etc.).

PeOfEo
06-23-2003, 01:51 AM
When I see divs and spans they are genarally with css in the layout. Thats the only place I use them. Speaking of which can someone look at my thread on resizing on the css forum and shed some light onto how to solve my problem? I am thinking it is going to mean changing the background on my sample page a bunch which I dont want to do.

moreta
06-23-2003, 07:19 AM
That should be <P style="font-family:'Brooklyn Kid', Times, serif">whatever... </P>.

Oops. Thanks for the ' correction, Charles.

Moreta