Forums

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

Home Forums CSS Annoying DIV

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22544
    med
    Member

    I’ve added a div to the end of my content box: http://tinyurl.com/3eq9ue However whenever I try to get it to fit inside my content box it doesn’t fit nicely. At the moment it is ok on the left hand side, but overflowing on the right. When I try and decrease the width in the css the left side becomes too short and the right is ok. Is there any way to get it to line up?

    Also, the div doesn’t extend all the way down to the bottom of the content box, there is some space between it and the end. I really don’t know how to fill that.

    Any help would be great! Thanks!

    #46846
    Chris Coyier
    Keymaster

    Try a margin-left of 3px and a width of 970px on your #end statement in your CSS.

    #46848
    med
    Member

    Thanks, 3px and 966px seemed to do the trick.

    And the space between the grey div and bottom border was due to the fill colour of the bottom image which I missed at first.

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