View Single Post
  #1 (permalink)  
Old Jun 27th, 2006, 12:40
dscanlon dscanlon is offline
New Member
Join Date: Jun 2006
Location: ireland
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
table-like structure

hi all

i'm using css and divs to create a table-like effect, as such:

<div style="float: left; width: 50%; clear: both">Company Name</div>
<div style="float: right; width: 50%; clear: both">Acme</div>
<div style="float: left; width: 50%; clear: both">Email</div>
<div style="float: right; width: 50%; clear: both">info@acme.com</div>

all well and good, until i get an over-long company name, which wraps the text onto the next line, so that the wrapped text lines up with the "Email" header. i don't mind that the text wraps, but i'd like the next "row" to be pushed down by the wrapped text, if possible

any suggestions?

TIA
Reply With Quote