Prev | Current Page 233 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

net/explorer.html.
161 CSS Layout and Formatting
?–  zoom: (any value except normal)15
Internet Explorer 7 has some additional properties that cause an element to gain a
layout (this is not an exhaustive list):
?–  min-height: (any value)
?–  max-height: (any value except none)
?–  min-width: (any value)
?–  max-width: (any value except none)
?–  overflow: (any value except visible)
?–  overflow-x: (any value except visible)
?–  overflow-y: (any value except visible)16
?–  position: fixed
Declaring any of these CSS properties will cause the element to gain a
layout??”assuming, of course, that the property is valid for the element concerned.
For example, we can??™t apply a height to inline elements unless the document is
being run in quirks mode (p. 17).
It??™s not a good idea to give all elements a layout??”not just because of the performance
and memory issues already mentioned, but because a number of other unwanted
CSS side effects will occur. For example:
?–  Children of absolutely positioned or floated elements will not shrink to wrap
their content when the child has a layout.


Pages:
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245