div trick

Out of context: Reply #7

  • Started
  • Last post
  • 16 Responses
  • versa0

    sorry - i'm not explaining it that well i guess

    i want to create divs that span 100%, even upon scrolling past the viewport... like when a table is set to 100% width -

    i have tried setting
    html > body width: 100%,
    body width: 100%,
    and the div needing to span to 100%, but that doesn't seem to work.

    what keeps to happening is this:

    if the window is maximized beyond the size of the widest div
    then yes, the div appears to spread 100%, and technically it does - but if i resize the window viewport to a smaller size, the 100% div creeps inward incrementally, not stretching the full width of the viewport -

    does that make any sense?

    thanks for the help

View thread