1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Two columns with <div> tags, help plz

Discussion in 'BlackHat Lounge' started by BlackxHat, Jun 2, 2012.

  1. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    I have two columns, floated left and right, like so:
    Code:
    <div style="float: left;">
    text1
    </div>
    <div style="float: right;">
    text 2
    </div>
    but how can i move the right column a little bit to the left? with 'padding'? how to?
     
  2. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    with margin
    Code:
    <div style="float: left;">
    text1
    </div>
    <div style="float: right;margin-right:100px;">
    text 2
    </div>