View Full Version : different fonts


iamrowdy
12-24-2004, 06:08 PM
hey. i've been known to ask dumb questions, but bare (bear?) with me. how do i have more that one color of font in 1 div layer. you know, some white letters and some gold letters or something. here's this if it helps..

<div id=layer1 style="position:absolute; top:0; left:250; width:350; height:1000; z-index:1; padding:5px; background-color:#000000; color:#ffffff; font-family: arial black; font-size: 16;"><b>i wish i could fly...</b></font>

thanxx!!

wergo
12-24-2004, 08:33 PM
I think the only way you could do that is by just changing the colors of each text you want to display a different color. (<font color="#******"> </font>)

And in your code, your'e ending a font tage (</font>) when I dont see any beginning <font>. So it's unnecessary for that being there. Instead, close your div tag with </div>

pb&j
12-24-2004, 09:09 PM
if you want to stick to css coding, use SPAN instead of FONT and apply the style you like that way.

as a very quick overview example...

<div>
normal text here
<span style="whatever;"> text here </span>
more normal text here
</div>