View Full Version : Aligning text and adding a border?

05-18-2009, 05: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


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

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

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

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

05-18-2009, 06:14 PM