...

View Full Version : Aligning text and adding a border?



kyllle
05-18-2009, 04:27 PM
Hi all,

I was wondering if you can help me out because i just cant think of the best way to achieve the following.

I have text like this:

Event: Lorem Ipsom
------------------------------------
Venue: The arena, london
------------------------------------
Time: 20:00

p.s the lorem, arena and 20:00 should be all aligned under each other

Basically I want to display my information like the above, I though the best way is to create 2 unordered lists, one for event, venue, time and another for lorem, arena, 20:00 then float the 2 lists beside one another but then I was unsure how I could add the border between each line?

All help very welcomed and thanks in advance

Kyle

abduraooft
05-18-2009, 04:35 PM
You could use tables(left columns as <th>s and right columns as <td>s), as your data looks tabular.

Apostropartheid
05-18-2009, 04:44 PM
Almost definitely a table.

kyllle
05-18-2009, 04:50 PM
and this doesnt go against the whole css over tables advice?

abduraooft
05-18-2009, 05:09 PM
and this doesnt go against the whole css over tables advice?No! For presenting tabular data, a <table> is the right tag.

kyllle
05-18-2009, 05:14 PM
thanks!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum