Forums

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

Home Forums CSS full width header/footer

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #46060
    slaggsten
    Member

    hey everyone! :)

    i’m trying to make my header and footer width 100% and centered. Everything looks fine until the browser size becomes to small, and a horizontal scroll bar appears. Help me!

    Anton.stallbacka.com

    #141350
    pixelgrid
    Participant

    adding overflow-x:hidden; to your body could solve the scrollbar issue

    #141353
    slaggsten
    Member

    thanks mate!

    #141354
    TheDoc
    Member

    You’ll want to do this: http://www.paulirish.com/2012/box-sizing-border-box-ftw/

    The reason why it’s showing a scrollbar is because you have a div (.hfeed.site) that has a width of 100% AND padding which takes it over 100%. That’s where `box-sizing: border-box;` saves the day.

    #141355
    slaggsten
    Member

    i have another issue with the text, when i make the browser really small the text-rows increases, why? how can i fix it? doesn’t matter that the text is outside the visible area

    #141356
    slaggsten
    Member

    Thanks doc! thats what i was suspecting, but just making the body overflow:hidden worked out great :-)

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