Text on Top???

liunx

Guest
Second Question in post 4 i think! <br />
<br />
Hiya<br />
<br />
Im new to HTML and I'm stuck.<br />
I've used this to place an image and then place the date over the top but it draws the text underneath:<br />
<br />
<br />
<div id="Layer1" style="position:absolute; left:690px; top:0px; width:73px; height:76px; z-index:1"> <br />
<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"Box_Small.gif"><br />
<SCRIPT LANGUAGE="JavaScript"><br />
MyDate = new Date();<br />
document.write("The date is:" + (MyDate.getMonth()+1) + "/" + MyDate.getDate() + "/" + MyDate.getFullYear() + ". Enjoy!");<br />
</SCRIPT><br />
</div> <br />
<br />
Is there any way to prevent the image going over the top of the text!<br />
<br />
Thx<!--content-->this might help (<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=21801&highlight=text+over+images">http://forums.webdeveloper.com/showthre ... ver+images</a><!-- m -->)<!--content-->Or wrap the text with: <span style="position:absolute;top:0px; left:0px;"><!--content-->YAY!!!!<br />
<br />
Thx!<br />
<br />
But oh no! Another problem!<br />
<br />
What is the JavaScript equivalent of a Space and a Line Break.<br />
You see, the Box_Small.gif is a picture of a box but when the date is drawn in the box it goes over the outline of the box. I need to be able to center the date in the box.<br />
<br />
Can anyone help this problem!<br />
<br />
Thx!<!--content-->
 
Back
Top