Simple Tables with Only CSS
This is one of the things I've always used tables for and I have no idea how to do it with only CSS. I've tried all the sensible things I can think of and none of them work. What I want is this (excuse the wiki markup equivelent):
left |
right |
How do you do this with only CSS? I've tried using div and span tags and I can't get it to work ... help!
Update: So I figured it out thanks to some help from Michael Angeles.
It's actually pretty easy, I was doing it right except that I needed to float the first element to the right. Like this:
<div style="text-align: right; float: right;">align right</div> <div style="text-align: left;">align left</div>