Skip to main content

CSS Question 44 Responses

Last post: 1 year, 11 months ago | Thread started: Mar 14, 10, 6:54 p.m.

RespondNew TopicDisable Images

  • d0mino

    hello css gurus.

    i am messing around with the menu layout on my website.

    when the menu expands and the scroll bars pop up it moves everything to the left, is there a way to avoid this issue?

    i am moving it around with padding, might i solve this issue by using margins instead?

    http://operationeveryday.com/

    Mar 14, 10, 6:54 p.m. – Permalink
  • noiseisthis

    you can add this:

    #menu {
    float: left;
    positiion: relative;
    }

    do you want the menu to be fixed always on the left corner showing at all times?

    • and change the padding for #content: padding:10px 5px 25px 40px;noiseisthis
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 14, 10, 7:08 p.m. – Permalink
  • d0mino

    noise i have tried that but then there is no scrolling?

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 14, 10, 7:33 p.m. – Permalink
  • inteliboy

    try get rid of all your padding right 20px.

    the scrollbar will still pop up, though shouldn't rejig things. maybe.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 14, 10, 7:40 p.m. – Permalink
  • d0mino

    added a width of 180px to the .container and it seems to work now. thx!

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 14, 10, 9:24 p.m. – Permalink

Login or Register to respond to this

Skip to main content