I have a block element with a set width. Inside I have two elements, one with a width of 25% and one with a width of 75%, and, unexpectedly, the second element wraps to a new line. Can anyone guess why this would be happening?

As a side note, I'm doing this to move a site away from YUI grids, if anyone knows of an easy way to do this, I'd be happy to hear it...

Thanks in advance...

1 answer


rounding issues, box model, padding, borders, margins, and float bugs, there are hundreds of causes for float drops.

a link to an example of the problem would enable us to solve it.

Answered about 8 years ago by Tony Crockford