HTML help with 2 columns

BlackxHat

Power Member
Joined
Oct 6, 2009
Messages
729
Reaction score
89
I'm using this code for a two column lay out of text
Code:
<div style="float: left;">text1</div> <div style="float: left;">text2</div>

How can I make the column on the right side, move more to the right?
 
oh ok but how do i move a little bit to the left or right now?
 
<div style="float:left; margin-right: 20px;">text 1</div >

That will push anything to the right over 20 pixels

Sent from my HTC Incredible S using Tapatalk 2
 
you're so lazy... there is a gazillion tutorials on CSS positioning and float and there are IRC channels where you can get an explanation in 1 minute flat. As a matter of fact just doing trial and error for 5min would give you the solution. Yet you post in a SEO forum.
 
Try to make the second div florat:right;

Or you can give padding-left for second div
 
Back
Top