SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Sticky left sidebar

    I already designed the main design of the sidebar here.

    The only problem I have is to stick this all the way on the left side, at the edge of the screen.

    I already tried using percents, 0 margins, and even negative margins. Either way, when you change the resolution, the position doesnt change automatically.

    Help me make this work, thanks.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,219
    Mentioned
    457 Post(s)
    Tagged
    8 Thread(s)
    Move it out of the header-top section and just place it anywhere in the <body> section. Also remove the negative left margin. When using position, the element will be placed in relation to the containing element. Since you want it on the side of the viewport, place it in the body section but not inside another element. Then it will be placed in relation to the viewport (or browser window).

  3. #3
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, solved!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •