DIV overflow: hidden; : div « Tags « HTML / CSS






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

1.'div' Example
2.DIV color: white;
3.div::before content: "I said, \"Hello, world!\"";
4.div::before color: white;
5.div with id selector
6.Using div as img tag
7.This div stretches across the whole window.
8.div content: "This string is placed inside of all div elements.";
9.Using div to layout table elements
10.Div element
11.Div color: #676767;
12.Div based multi-column
13.Div color: red;
14.Div color: #FEF9ED;
15.DIV as container
16.Using two Nested DIV to do the layout
17.DIV color: #9D9C6A;
18.DIV color: #505050;
19.Nested div box
20.Default layout for div tags
21.The dialogue div element is aligned vertically and horizontally, no matter what the size of the browser window.
22.div for header and body
23.Grouping Elements Using the div Element
24.Two boxes with div tags
25.HTML divisions
26.Division tag
27.div with id style
28.div with class name
29.div.className (tag.className)
30.div in a div with class name
31.Use DIV as wrapper
32.Click to show or hide DIV section
33.Click to show and hide DIV content (IE only)
34.Block divider
35.'nowrap' is similar to the 'pre' element