need a sidebar

Discussion in 'CSS' started by getpaidonlinejobs, Aug 21, 2010.

  1. #1
    I need advice on how to create a side bar on my website quickcashmall.com
    Help is appreciated
     
    getpaidonlinejobs, Aug 21, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    I think you already have mark up in place

    
    <div id="content">
            <div id="contentleft">
            </div>
            <div id="contentcenter">
    
    Code (markup):
    you just have to tweak your css

    
    #contentleft { position:relative; float: left; width: suitable width}
    #contentcenter{position:relative; float: left; margin:reduce the left margin to 10px may be}
    
    Code (markup):
    clear the float after the div "contentcenter"
    
    <div id="content">
            <div id="contentleft">
            </div>
            <div id="contentcenter"> whatever content you have remain same
            </div>
            <div style="clear:both"></div> <!-- clear the float -->
    </div>
    
    Code (markup):
     
    radiant_luv, Aug 21, 2010 IP
  3. getpaidonlinejobs

    getpaidonlinejobs Peon

    Messages:
    209
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you radiant_luv
     
    getpaidonlinejobs, Aug 21, 2010 IP