Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Nested Float error #456

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Nested divs with floats doesn`t render correctly

If two floated divs positioned inside an outer floated div then the two divs 
inside displayed on the top of each other.

sample code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.row {
    float:left;
}
.col1 {
    float:left;
    width:100px;
}
.col2 {
    float:left;
    width:100px;
}
</style>
</head>

<body>

<div class="row">
<div class="col1">col1</div>
<div class="col2">col2</div>
</div>
</body>
</html>

Original issue reported on code.google.com by koczogh....@gmail.com on 29 Mar 2012 at 11:06

GoogleCodeExporter commented 9 years ago
Full support for float is still in development. I'm merging with the original 
issue requesting the enhancement so we can use your sample code for testing.

Original comment by eclecticgeek on 29 Mar 2012 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16