Michael Swarts Michael Swarts - 8 months ago 35
CSS Question

Is it better to use divs or tables to contain columns of links?

I have a page with 3 columns of links at the bottom. Each column is put into a div and all three divs are wrapped into a big div that is centered on the page. Is this something that is better suited to a table or is a table the wrong element for the job?


You can also use <ul> & <li> for this.

#horizontal {
    width: 100%;
    background: #eee;
    float: left;

#horizontal ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 12em;
    float: left;

This will create horizontal columns using li elements, and then you can stuff the HTML to create individual links in each li.