In IE9 and FF it works like a charm. In IE8 it makes spaces between the rows when I update using javascript (I make rows using
clear: both;height: 0;) in a fraction of a second and then refreshes the contents.
I update the html using javascript/jquery in a way that all the HTML for the grid is produced in javascript and then inserted into a div. It is refreshed at page switch and throug timer refresh.
In IE9 Developer Tools Quirks mode, it produces the same spaces (and more) and does not correct them.
soerenkbhg
Member
134 Points
75 Posts
IE8 mode makes spaces between div after being refreshed using javascript (Not in IE9 and FF)
Nov 05, 2012 01:37 PM|LINK
I lay out a grid of div using floating left.
In IE9 and FF it works like a charm. In IE8 it makes spaces between the rows when I update using javascript (I make rows using clear: both;height: 0;) in a fraction of a second and then refreshes the contents.
I update the html using javascript/jquery in a way that all the HTML for the grid is produced in javascript and then inserted into a div. It is refreshed at page switch and throug timer refresh.
In IE9 Developer Tools Quirks mode, it produces the same spaces (and more) and does not correct them.
Here are the styles used:
.TableModelDataCell { overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; float: left; padding-left: 4px; padding-right: 4px; vertical-align:middle; height: 25px; line-height: 25px; border-bottom: 1px solid #eee; border-left: 1px solid #eee; } .TableModelDataCellOdd { background-color: #F9F9F9; } .TableModelDataCellEven { background-color: #FFFFFF; } .TableModelHeaderCell { background-color: #E8E8E8; } .TableModelCellBorder { border-bottom: 1px solid #eee; border-left: 1px solid #eee; } .TableModelCellBorderLastInLine { border-bottom: 1px solid #eee; border-right: 1px solid #eee; } .TableModelFooter { border-bottom: 1px solid #eee; border-right: 1px solid #eee; border-left: 1px solid #eee; background-color: #E8E8E8; height: 25px; line-height: 25px; } .TableModelDisabledPageSwitcher { color: #808080; } .TableModelActivePageSwitcher{ color: #000000; text-decoration: none; }And here is an example of the HTML
Thanks in advance :)
Xequence
Contributor
4313 Points
1528 Posts
Re: IE8 mode makes spaces between div after being refreshed using javascript (Not in IE9 and FF)
Nov 05, 2012 10:50 PM|LINK
reset your td elements in your css by adding a td{padding:0; margin:0}
Credentials
soerenkbhg
Member
134 Points
75 Posts
Re: IE8 mode makes spaces between div after being refreshed using javascript (Not in IE9 and FF)
Nov 06, 2012 09:10 AM|LINK
Hi,
It is not a table but DIV's. I tried to add your suggestion to the CSS included for all cells - unfortunately without effect.
But thanks for the attempt to help me :)
soerenkbhg
Member
134 Points
75 Posts
Re: IE8 mode makes spaces between div after being refreshed using javascript (Not in IE9 and FF)
Nov 06, 2012 10:32 AM|LINK
Solved: Using style='clear: both;font:0' instead of height: 0