#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    More then on div tag ending


    Hey I'm really new to this but I saw some code that I just can't figure out. The line of code follow

    <div class="Sheet-tr"><div></div></div>

    why would there be more then one ending tag for the element?
    It is followed about a few more that looks just like that but a different class.

    Thanks for helping me out, hope I didn't cause any problems with asking about this. I just couldn't Google a good answer for this.

    Thanks again

    Steve
  2. #2
  3. For POny!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    Amsterdam
    Posts
    416
    Rep Power
    115
    It's a div inside a div. If you use indentation you can see the hierachy.
    Code:
    <div class="Sheet-tr">
         <div>this is the inner div</div>
    </div>
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    15
    Rep Power
    0
    remove inner div if not use.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    31
    Rep Power
    0
    The start of a <div> is that and the end is </div>

    Your code has a div inside another div.

    Code:
    <div class= "bollocks"> contents of div here </div>

    Comments on this post

    • eeji disagrees

IMN logo majestic logo threadwatch logo seochat tools logo