Header content section : Header « Tags « HTML / CSS






Header content section

 


<!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></title>
<style type="text/css" media="Screen">
* .section {
  padding: 10px;
  margin-bottom: 20px;
  background-color: pink;
  border-left: 1px solid gray;
  border-right: 2px solid black;
  border-top: 1px solid gray;
  border-bottom: 2px solid black;
}

* .indent {
  margin-left: 20px;
  border-left: 4px solid black;
  padding-left: 20px;
}

</style>
</head>
<body>
<div class="section"> 
    <h2>Normal Heading</h2> 
    <p class="indent">this is a test. this is a test. this is a test. this is a test. </p> 
</div> 




</body>
</html>

 








Related examples in the same category

1.Headings
2.Inline style for header 3
3.Header font setting
4.Heading with background
5.header with absolute position
6.Header text alignment: center
7.Set font size for

8.header 2 background image setting
9.Set font size to 1em
10.Hide
in
11.Use
12.Set

in header

13.Set

in header section

14.Heading with margin
15.Use bold font to highlight heading
16.Adding top and bottom margin for heading
17.Set font for header 1
18.Background with bottom border
19.Border for header
20.Inline style for header
21.

overflow hidden

22.Add the Left Margin
23.Header, image and content
24.h1 padding: 10px
25.News Header style
26.A fixed header
27.Adding links in to the header
28.Letter Spacing in Headlines