Hi everyone, I've been practicing with the css's display:table property, which I learned about from SitePoint's Everything You Know Abous CSS Is Wrong book. I have a simple page with contact info on the bottom: http://www.mondiara.com/graphics/
The contact info div is defined as display:table and has a logo on the left taking two rows. As the book suggested, I added a content_wrap (display:table) in the second cell to get two rows within it; thus creating a rowspan for the logo. However, on FF, Safari and IE8 the table seems to be much higher than needed: the logo's cell is almost twice the height than the logo it contains. This naturally sets the height also for the neighboring cell. I'm also wondering why, when the cell height is so big, the cell with the contact info is positioned on the bottom of the cell when the logo is on the top? I have tried changing the size of the logo, setting fixed height to the table and rows, playing with border-collapses etc but I can't seem to figure out a solution for the problem. For your sake I added borders to the table and its cells to show how it's built. I also have those "extra/anonymous" rows which, according to SitePoint, are not necessary to have (the browser should create missing rows etc automatically). Hopefully you can find a solution for my problem! The css is at http://www.mondiara.com/graphics/graphics.css but the relevant css for the table is also here: /**** CONTACT INFO ****/ #contact { position:relative; top:8em; margin:auto; display:table; border-spacing:0; font-size:0.8em; border:0.2em #005799 solid; border-collapse:collapse; } #contact .cell { display:table-cell; border:0.1em #005799 solid; padding:0 1.5em; } #contact .row { display:table-row; border:0.1em #005799 solid; } .logo { display:table-cell; width:220px; padding:0.5em 1em 0 0.5em; border:0.1em #005799 solid; } #contact .content_wrap { display:table; padding:0; } thanks in advance, --patrik P.S. I don't want to worry about previous versions of IE, yet.... :) ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
