faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

21 of 24 people (88%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How can I display text over an image?

Dec 3rd, 2001 07:24
Francesco Defazio, Joćo Martins,


You can do, using a DIV:
<div style="position:absolute; left:20; top:400" >
  <img src="images/provalogo.jpg" width="100" height="40" >
</div>
<div style="position:absolute; left:30; top:400" >
    <font color="yellow"> Hello </font> 
</div>
where the first div is the layer with your image, and the second is the 
layer with your text.
Bye