<div style=”width: 400px; background-color: lightblue;
padding: 4px; margin: 0px auto;”>
To center something in IE, you can use text-align=center(which is
frowned upon by non-IE types):
<div style=”text-align:center;”>
The solution? Make everybody happy by wrapping a divwith the 0px auto
inside another divwith text-alignset to center, like this:
<html>
<head>
<style>
</style>
</head>
<body>
<div style=”text-align:center;”>
<div style=”background-color: lightblue; width: 400px;
padding: 4px; margin: 0px auto;”>
<p>HERE I am...
</div></div>
</body>
</html>
Timing Blurring and Other Effects ............................................................
Combine timers, scripting, and filters to create lots of dynamic visual effects.
Try this cool effect in Internet Explorer:
<html>
<head>
<script LANGUAGE=”VBScript”>
dim counter
function startTimer()
timerhandle = setInterval(“sizeit”,130)
end function
Chapter 18: Ten Great CSS Tips and Tricks 321