DIV inside a DIV

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by Conor, Apr 8, 2005.

  1. Conor

    Conor New Member

    Messages:
    3,570
    Likes Received:
    0
    Trophy Points:
    0
    Possible? Code? How?
     
  2. Richard

    Richard Active Member

    Messages:
    2,028
    Likes Received:
    0
    Trophy 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.
     
  3. Conquester777

    Conquester777 New Member

    Messages:
    180
    Likes Received:
    0
    Trophy 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.
     
  4. Conor

    Conor New Member

    Messages:
    3,570
    Likes Received:
    0
    Trophy 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.
     
  5. Conquester777

    Conquester777 New Member

    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    0
    What are you talking about?
     

Share This Page