A question about floats and clearing. Here’s the fiddle.
How do I get the text to appear under the red object?
If I use clear: left, the text appears under the black object because it has greater height than the red one.
Is it possible to get that look I’m looking for by using only float and clear?
A question about floats and clearing. Here’s the fiddle. How do I get the
Share
You need to put
reddiv followed by theh2tag in a containing div that floats left (you can remove the float:left from thereddiv. and you can remove theclear:leftfromh2🙂http://jsfiddle.net/XqLFX/