Trying to get away from tables and start using divs

Discussion in 'CSS' started by bonecone, Dec 10, 2011.

  1. #1
    I'm trying to create a page with a left sidebar that widens as needed, and a right content pane that expands to take up whatever space remains, and I'm trying to do it with two floating divs instead of table cells. Is this possible or do I have to settle for fixed percentages of page width?
     
    bonecone, Dec 10, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    This is possible, if you are just starting out using CSS then you will find that doing things and seeing what happens with each change is a good way to learn.
     
    Toycel, Dec 10, 2011 IP
  3. leanocodes

    leanocodes Member

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    That's definitely possible using CSS. :)
     
    leanocodes, Dec 10, 2011 IP
  4. terier

    terier Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    0
    #4
    use:
    position: relative;
    float: left / right ; (depending on your layout)
    and than add a margin-top: xxx; margin-left: xxx; as needed.
     
    terier, Dec 21, 2011 IP