Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS What's wrong with this??!

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #195689
    Rhyss
    Participant

    Hey guys, I downloaded a CSS template and am having some issues, if you look at the file here http://codepen.io/anon/pen/emyPbN you’ll see that the top right rectangle is lower than the others, I really don’t know why!

    Any help will be appreciated, thanks.

    #195714
    shaneisme
    Participant

    The .movie.last is outside the .box element which is containing the rest.

    You should really clean up your HTML. The way it’s written out now it’s really easy to make a mistake like this because you have no way of knowing what element is containing what or is contained by what parent.

    It’s great to use indentation to show what is a parent or not.

    <div><div>
    Stuff and things</div><span>Other things</span>
    </div><div><h1>Hello</h1>
    </div>
    

    Vs.

    <div>
      <div>
        Stuff and things
      </div>
      <span>
        Other things
      </span>
    </div>
    
    <div>
      <h1>
        Hello
      </h1>
    </div>
    

    Which is easier to see what is inside what?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.