Posted by Eric Polerecky in CSS, Dojo, IESep 16th, 2008 | 2 Comments
If the parent container of a dojox.grid.Grid has its style set to text-align:center the rows of the grid, in IE, won’t display their data. The data, of course, is still there and displays correct in everything else.
Code Snip:
1: <h2>Working</h2>
2: <div id="dojoxGrid" dojoType="dojox.Grid" jsId="dojoxGrid" structure="layout"></div>
3: <h2>Not Working (in IE)</h2>
4: <div style="text-align:center;">
5: <div id="dojoxGridError" dojoType="dojox.Grid"...
Posted by Eric Polerecky in IEAug 28th, 2008 | 4 Comments
In case you don’t know, CSS expressions were actual bits of JavaScript that you could run from CSS rules; this was commonly used to simulate the CSS max-width property for IE:
CSS:
div.someClass {
/* Internet Explorer */
width: expression(document.body.clientWidth> 600) ? "600px" : "auto";
/* Standards-compliant browsers */
max-width: 600px;
}