2010.06.22
CSS Tip #1 Thumbnail Overflow
Problem:
When I float a thumbnail in a paragraph that isn’t longer than the image it overflows outside of the paragraph and messes up the following paragraphs text wrap.
Solution:
p {
width: 100%;
overflow: auto;
}
Reason:
Adding the width attribute gives the paragraph tag “haslayout” and overflow ensures the overflow is showing.


