Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Can anyone help me, a friend once showed me how using div tags to move text, jpgs,Gifs anywhere and in front or behind anything on your web page. I just cannot remember what it was that he showed me.I guess it is like over lapping layers if that makes any sence.

The following example demonstrates subdividing an HTML page with <DIV> tags, and setting the display style property so that it displays the division when the user clicks an input button.
<SCRIPT LANGUAGE = "VBScript">
Sub ShowDiv()
'This subroutine is called when the user clicks a select button.
'It displays text in the hidden DIV.
document.all.MyDiv.style.display = ""
End Sub</SCRIPT>
<DIV ID= "MyDiv" style="display: 'none'" >
This is some hidden text.
</DIV>
<Select id= "Showit" onclick=ShowDiv>
Initially, the display style is set to none. To view the contents of the div, set the style to the default value, inline.The object is rendered as an inline element sized by the dimensions of the content. U can now use as many divs as u want and display them as required.Bhupi

I think I know what you are asking for. I maintain a website for a trailer manufacturer that was originally set up using DIV tags with layers like this:
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 545px; top: 721px;">
If you want to see this in use go to www.rockettrailers.com and check out View>Source. I did not build this page but like the way the tags work for positioning. I hope this helps.

Oooh yea, forgot to tell you. Just enter the size of the area you want text to be in using the "Width and Height" tags and the position using the "Left and Top" tags. If I remember correctly, the Z-Index sets the position of the layer in the stacking order.

Thank you bhupi and yvarg1959 I am going to try your ideas and give it a go and see how it works out.

![]() |
Editing ASP/ShoppingCart
|
Images won't load - real...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |