Prev | Current Page 235 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

If this parent element contains floated or absolute
elements, it??™s likely to be the one causing the problem; the problems are likely to
exist because it??™s not taking proper care of its child elements.
A useful approach to debugging layout issues is to set the proprietary CSS property
zoom (p. 380) to 1 for elements within the document, one at time, in order to isolate
the element that??™s causing the problem. If you set the property on an element, and
the issue is resolved, you know you??™re on the right track. The zoom property is useful
because, as well as being a property that triggers an element to gain a layout, in
most cases, setting it will not alter the look of the page in any other way (apart from
possibly fixing the bug that you??™re experiencing). A process of elimination can be
used to narrow the problem down quite quickly.
Once you have found the element that??™s causing the problem, you can apply the
necessary fix. The preferred approach is to set one or more dimensional CSS
properties on the element.


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