I have a block level element containing 25 floated blocks,
I set the width:20%
and height: 20%
depending on the height there is sometimes a gap, but width is always correct.
#grid{
width: 880px;
height: 333px;
background: blue;
}
#grid a{
display: block;
float: left;
width: 20%;
height: 20%;
background: red
}
please see http://jsfiddle.net/wVC5j/
how can i I ensure the gap at the bottom doesn't exist?