Align table columns HTML

Posted by Luigi Tiburzi on Stack Overflow See other posts from Stack Overflow or by Luigi Tiburzi
Published on 2013-06-25T16:08:48Z Indexed on 2013/06/25 16:21 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I finally was able to align the columns in the tables of a page of my website. Though I found the solution I don't understand it. This is a fiddle I prepared. If you delete

display: block

from the CSS the columns are centered perfectly.

The fact is that I don't understand what that instruction is causing problems, doesn't it means that elements are displayed as block elements? Shouldn't it cause the elements (the raw in particular) to fill an entire line?

Thanks for your explanation

© Stack Overflow or respective owner

Related posts about html

Related posts about css