Grow your CSS skills. Land your dream job.

Outsite container div

  • # May 10, 2013 at 8:44 am

    Hello, i’m in a little trouble here, and wish a help.

    I am developing a onepage website with a div container width 960px, but in a certain part of the site need a div outside the container, at the right of it, but that does not create horizontal scroll beyond 960px.

    How to do it? [] ‘s

    # May 10, 2013 at 9:21 am

    Is this certain part content or design imagery?
    What have you tried?
    Do you have a mockup?

    # May 10, 2013 at 9:31 am

    lol, I’ve swapped the positions relative and absolute between them, now it’s solved. tnx wolfcry911

    # May 10, 2013 at 9:32 am

    Getting a div outside the container is easy, not getting a horizontal scrollbar can be a pain. I’ve had no luck with `body { width: 100%; overflow: hidden; }` You might be better of using a MQ to reposition or hide that div if the window gets too narrow.

    EDIT: our comments crossed, so nevermind ;p

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

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