The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Absolute positioning causing scroll issue

  • # March 19, 2013 at 12:05 pm

    I am trying to eliminate the scroll and have my website fit to screen again.

    I have narrowed it down to this line of code that is causing the scroll on the page to happen. When I change the absolute it fixes it but then logo is out of place. If someone had time to take a quick look at this that would be great. You have to click on visitors access to enter the site for now.

    #header #logo {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: none;

    # March 19, 2013 at 12:09 pm

    This reply has been reported for inappropriate content.

    @schill, just remove the width: 100%

    # March 19, 2013 at 12:18 pm

    >Absolute positioning causing scroll issue

    Then don’t use it.

    Try using other (and much better) layout options.

    # March 19, 2013 at 1:33 pm

    @ChrisP Thanks that did the trick

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed