Seems Simple. Sidebar on the Right

Discussion in 'CSS' started by D.O.I.P, Apr 12, 2007.

  1. #1
    I've been working on this for the past hour, and can't for the life of me figure out how to make it work.

    Someone asked me if I could put a sidebar on the right hand side of their content. Sure, should be no problem.

    Then I saw their code.

    http://www.styleleak.com/

    How would I get a sidebar onto the right hand side of this site?

    Thanks.
     
    D.O.I.P, Apr 12, 2007 IP
  2. PFCritics

    PFCritics Peon

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, since their layout appears to be at a fixed width and aligned to the left, you could probably put a div over there using absolute positioning.

    Something like:
    <div style="position:absolute; top:100px; left:600px; width: 200px;">
    Right side content here
    </div>
     
    PFCritics, Apr 13, 2007 IP
  3. D.O.I.P

    D.O.I.P Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Problem fixed, no longer need help. Thanks!
     
    D.O.I.P, Apr 13, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Avoid absolute positioning for general layout techniques if possible. A combination of floats and (sometimes negative) margins will work best.
     
    Dan Schulz, Apr 13, 2007 IP