View Full Version : overlaying text?


RebelK
07-26-2005, 04:46 AM
I know ive seen this on here before, but i cant find it again. whats the code for making big text saying something and smaller text on top of it? i cant use javascript if thats an option. thanks

kittycat
07-26-2005, 05:27 AM
<span style="line-height: 5px;><span style="font-size: 30px;">big text</span><br><span style="font-size: 10px">small text</span></span>

Something like that should work

pb&j
07-26-2005, 08:24 AM
or like...

<div style="font-size: 25px; z-index: 1;">
big letters here
</div>

<div style="font-size: 10px; z-index: 2; position: relative; top: -20px; left:0px;">
small letters here
</div>

RebelK
07-26-2005, 07:48 PM
Thanks so much, but how do i change the color? and is it possible to add another layer of text?

iTom
07-26-2005, 09:09 PM
Change the color just like you would do with CSS:

<div style="font-size: 25px; z-index: 1; color: red;">
big letters here
</div>

<div style="font-size: 10px; z-index: 2; position: relative; top: -20px; left:0px; color: blue;">
small letters here
</div>
Hope this helps.