SO designing a website, I ran into a particular problem.
I want two columns of text next to each other. So I floated (left) the first set of text left, and set a margin of 50% to keep it to one side. But when I did the next column of text, and floated it right (I tried left too), but it appears under the former column of text. I also tried using position:relative and moving it, but it refused to move.
I am guessing this is becuase elements cannot be placed within another elements margin.
Please help, with no Javascript. It is evil.
html
<h1 id="firstcolumn">blahblahblahblahblahblah</h1>
<h2 id="secondthingy">foobarfoobarfoobar</h2>
css
#firstcolumn {
float: left;
margin: 20;
margin-left: 15px;
margin-right: 50%;
border-right-style: solid;
border-right-color: black;
border-right-width: 3px;
font-size: 200%;
}
#secondthingy {
float: right;
}
The following should get you two columns of left aligned text: