DIV overflow: hidden;
<!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" dir="ltr" lang="en-US"
xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style rel="stylesheet" type="text/css">
#items {
padding: 15px 0 0 196px;
}
.item {
width: 226px;
float: left;
overflow: hidden;
background-image: url(images/dots2.gif);
background-position: top left;
background-repeat: repeat-y;
font-family: Tahoma, sans-serif;
font-size: 11px;
color: #6C6C6C;
margin: 0 7px 0 0;
padding: 0 0 2px 0;
}
.item strong {
color: #516496
}
.item div {
width: 185px;
padding: 20px 0 0 25px;
}
.item span,.news span {
display: block;
font-family: Tahoma, sans-serif;
font-size: 11px;
color: #FEE8B7;
font-weight: bold;
background-color: #D0361B;
line-height: 17px;
width: 74px;
padding: 0 0 0 10px;
}
.item p {
padding: 10px 0 5px 0
}
.item .more {
padding: 10px 0 0 12px;
background-position: left 14px;
}
.item ul {
list-style-type: none;
line-height: 15px;
padding: 10px 0 3px 0
}
.item li a {
color: #056EC1;
text-decoration: underline
}
.item li a:visited,.copy a:visited {
text-decoration: underline
}
.item li a:hover,.copy a:hover {
text-decoration: none
}
</style>
</head>
<body>
<div class="item">
<div>
<p><strong>Dolor sit amet</strong> consectetuer adiscing Etiam sem lorem vestibulum: </p>
<ul>
<li><a href="#">consectetuer adiscing</a></li>
<li><a href="#">massa dapibus diam</a></li>
<li><a href="#">tristiquelacus</a></li>
<li><a href="#">viverra augue ipsum</a></li>
<li><a href="#">conubia nostra, per inceptos</a></li>
<li><a href="#">magna a luctus lacinia</a></li>
</ul>
<a href="#" class="more">read more</a>
</div>
</div>
</body>
</html>
Related examples in the same category