DJRobThaMan
07-07-2006, 11:23 AM
Hi everyone,
I found an article on this and it looks like a great method but uses a lot of hacks.
It started off with this:
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
and then quite a few other hacks.
Source Article Here (http://www.positioniseverything.net/easyclearing.html)
I'm sure whoever wrote is a million times better at this stuff, but is there any reason something like this wouldn't work
.outerDiv
{
padding-bottom: -1px;
}
.clearfix:after
{
content: ".";
display: block;
height: 1px;
clear: both;
visibility: hidden;
overflow: hidden;
}
Douglas
I found an article on this and it looks like a great method but uses a lot of hacks.
It started off with this:
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
and then quite a few other hacks.
Source Article Here (http://www.positioniseverything.net/easyclearing.html)
I'm sure whoever wrote is a million times better at this stuff, but is there any reason something like this wouldn't work
.outerDiv
{
padding-bottom: -1px;
}
.clearfix:after
{
content: ".";
display: block;
height: 1px;
clear: both;
visibility: hidden;
overflow: hidden;
}
Douglas