I had "float"-problems with articles that includes images (see screenshot). Two possible solutions worked for me, but I'm not an css-expert, so you should check this e.g. for semantic problems.
A)
/* EasyClearing http://www.positioniseverything.net/easyclearing.html */
.content:after
{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.content
{display: inline-block;}
/* Hides from IE-mac \*/
* html .content
{height: 1%;}
.content
{display: block;}
/* End hide from IE-mac */
B)
/* http://dtott.com/thoughts/2009/01/06/clear-your-floats-even-easier/ */
.content { overflow: hidden; }
* html .content { height: 1%; }
Comment | File | Size | Author |
---|---|---|---|
screenshot-after.jpg | 82.09 KB | Gluhm | |
screenshot-befor.jpg | 95.87 KB | Gluhm |