Forums

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

Home Forums CSS Div not changing % width when container padding changes

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38620
    Billy
    Participant

    I’m having a problem with a div not changing its percentage width when the container it’s in (with relative positioning) changes padding.

    CodePen here:
    http://codepen.io/Druid-of-Luhn/pen/sliedeout-sidebar/

    #104777
    Billy
    Participant

    The weirdest thing is that I don’t get the bug in Mobile Safari, only on Desktop browsers (Opera, Chrome, FireFox and Safari).

    #104778
    wolfcry911
    Participant

    works for me

    #104780
    Billy
    Participant

    All that happens for me is that it moves; its `margin: 10px auto;` doesn’t kick in, and its `width: 70%;` doesn’t happen either.
    It’s only when I resize the browser that it works.

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