Click to See Complete Forum and Search --> : Float Wrapping Problems


mikepurvis
02-11-2005, 11:41 PM
So this a fairly blatant rip of Bowman's beautiful gallerys:

http://uwmike.com/layout/pastel/gallery.html

It wraps as I'd like it to in Firefox. I will be hiding the float rule from IE5x, but IE6 is currently allowing the elements to flow outside of the containing element. (the <ul>)

I've outlined the ul in green for the sake of demonstration. IE seems to completely ignore it.

:confused:

Fang
02-12-2005, 03:06 AM
.gallerybox li a {
/* display: block;*/
padding: 22px 21px 22px 21px;
}

just is a precaution:
background: url(img/thumb.gif) no-repeat;

mikepurvis
02-12-2005, 11:31 AM
Originally posted by Fang
just is a precaution:
background: url(img/thumb.gif) no-repeat;

Good thought, thanks.

Still not sure what the deal is with the wrapping, is though.

Fang
02-12-2005, 02:01 PM
This was ok:
.gallerybox li a {
display: block;
padding: 22px 21px 22px 21px;
}
/* change this
.gallerybox li {
list-style: none;
float: left;
width: 146px;
height: 144px;
/*padding: 5px;*/
border: 1px solid #cbcac4;/* added*/
background: url(img/thumb.gif)
}