Forums

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

Home Forums CSS [Solved] 100% Header + Box Shadow Issue

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #28628
    noahgelman
    Participant

    How can I use box shadow on a 100% width header without causing some horizontal scroll?

    #80053
    GreatPotato
    Member

    I had a similar problem with Firefox recently (was a problem in Chrome, Safari et al), but I managed to fix it with:


    body {
    width: 100%;
    overflow: hidden;
    }
    #80041
    noahgelman
    Participant

    That takes away the horizontal scroll. However, it’s taking away my vertical scroll as well. Any other solutions?

    #80015
    Letalos
    Member

    Hi Noah,

    replacing the “overflow: hidden” with “overflow-x: hidden” solved the problem for me – horizontal scrollbars are gone, verticals are there.

    For some reason I had to set the width of my header to 101%, otherwise the header wouldn’t have covered the whole width of the browser-window.

    Best regards
    Letalos

    #80000
    noahgelman
    Participant

    Ah ha! I see. I didn’t know there was an overflow-x property. Now that I think about it, having an overflow-x and overflow-y property makes a lot of sense. Thank you for your help.

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