I had just tested it again. The result is fine.
P.S. IE7 needs "line-height: 0; font-size:0;" to prevent jumpy space
issue. Thanks Davey Faherty for the help.
On Nov 11, 7:23 pm, Ian <ian.h...@gmail.com> wrote:
> div:after {
> content: ".";
> clear: both;
> display: block;
> height: 0;
> visibility: hidden;
> }
> The above code is used popularly to clear float elements. But it
> causes layout problem in IE 6 and 7 because the generated element in
> IE 6 and 7 doesn't behave correctly. Is there a workaround?