DIV inside a DIV

Richard

Active Member
Messages
2,028
Reaction score
0
Points
36
Here is code for a floating dive tag
HTML:
<div id="Layer1" style="position:absolute; left:239px; top:113px; width:459px; height:324px; z-index:1">
	<div id="Layer2" style="position:absolute; left:148px; top:84px; width:232px; height:129px; z-index:2"></div>
</div>

If you move the first one the second div will move in relation to the first.
 

Conquester777

New Member
Messages
180
Reaction score
0
Points
0
<div><div></div></div> is a DIV inside a DIV... so I don't know what you're asking.
However, a div code inside of a div code is incorrect html, you should use a span within a div code.

like
<div><span></span></div>
or even
<div><span><span></span></span></div>


of course put in the appropriate css attributes you wish to.
 

Conor

New Member
Messages
3,570
Reaction score
0
Points
0
Whats the point in your post? It wasn't a total stupid question. Don't post if all you do is spam. I got my answer.
 
Top