We would like to know how to make inline-blocks to take up the whole line.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
ul {<!-- www .j a va 2 s .c om-->
padding: 0;
overflow: hidden;
background: #FC0;
}
li {
display: block;
float: left;
clear: left;
background: #CF0;
}
</style>
</head>
<body>
<ul>
<li>Test</li>
<li>Test Test</li>
<li>Test Test Test</li>
<li>Test Test</li>
<li>Test</li>
</ul>
</body>
</html>
The code above is rendered as follows: