Grow your CSS skills. Land your dream job.

Annoying DIV

  • med
    # April 6, 2008 at 7:07 am

    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!

    # April 6, 2008 at 10:38 am

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

    med
    # April 6, 2008 at 11:58 am

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".