DIV color: #505050; : div « Tags « HTML / CSS






DIV color: #505050;

      
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">

#leftside .announce {
  background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
  border-bottom: 1px solid #d8d8d8;
  border-left: 4px solid #ccc;
  border-right: 1px solid #d8d8d8;
  border-top: 1px solid #d8d8d8;
  clear: left;
  color: #505050;
  line-height: 1.3em;
  margin: 10px 0;
  padding: 5px 5px 5px;
  width: 134px;
}

#leftside p,.announce p {
  font-size: 0.9em;
}
</style>

</head>
<body>
  <div id="leftside">
    <h2 class="hide">Site menu:</h2>
    <div class="announce">
      <h2>Latest news:</h2>
      <p><strong>Jan 29, 2007:</strong><br />
        This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. </p>
      <p class="textright"><a href="">Sample link &raquo;</a></p>
    </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 overflow: hidden;
16.DIV as container
17.Using two Nested DIV to do the layout
18.DIV color: #9D9C6A;
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