J
Joshua Beall
Hi All,
I have two columns, floated left and right, like so:
<div style="float: left; width: 50%;">
Lorem ipsum
</div>
<div style="float: right; width: 50%;">
dolor sit amet
</div>
Now, this works ok to create two columns, but I run into trouble as soon as
I tried and add padding or margin to either <div>; one column will jump down
below the other. I can compensate for this, to some extent, by changing the
width from 50% to something slightly less, like 48%, but I assume that is
not really how to do this.
What should I be doing, in order to get a two adjacent columns, that will
grow or shrink with the page?
I have two columns, floated left and right, like so:
<div style="float: left; width: 50%;">
Lorem ipsum
</div>
<div style="float: right; width: 50%;">
dolor sit amet
</div>
Now, this works ok to create two columns, but I run into trouble as soon as
I tried and add padding or margin to either <div>; one column will jump down
below the other. I can compensate for this, to some extent, by changing the
width from 50% to something slightly less, like 48%, but I assume that is
not really how to do this.
What should I be doing, in order to get a two adjacent columns, that will
grow or shrink with the page?