Center content layout : Size and Layout « Layout « HTML / CSS






Center content layout

  

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

#contentwide {
  line-height: 1.5em;
  margin: 10px 0 10px 160px;
  padding: 0;
  text-align: left;
}

#contentwide h2 {
  font-size: 1.8em;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 8px 0 10px;
  padding: 0;
}

#contentwide img {
  background: #ccc;
  border: 4px solid #f0f0f0;
  color: #303030;
  display: inline;
  padding: 1px;
  margin: 0 10px 5px 0;
}

#contentwide ul,#contentwide ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

#contentwide ul ul,#contentwide ol ol {
  margin: 2px 0 2px 20px;
}

#contentwide li {
  margin: 0 0 2px 10px;
  padding: 0 0 0 4px;
}

</style>

</head>
<body>
  <div id="contentwide">
    <h2>heading 2!</h2>
    <p>This is a test. This is a test. This is a test. This is a test. This is a test. 
    This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. 
    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>This is a test. This is a test. This is a test. This is a test. This is a test. 
    This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. 
    This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. 
    This is a test. This is a test. This is a test. 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>
  </div>


</body>
</html>

   
    
  








Related examples in the same category

1.Sized Absolute center aligned
2.width and height inline style
3.width height and absolute positioning
4.Stretched Absolute center aligned
5.Sized Absolute center offset
6.Stretched Absolute centered
7.Top Aligned Shrinkwrapped Static Block
8.Shrinkwrapped Absolute Top Aligned
9.Sized Static Block top offset
10.Response layout with avatar image
11.About page layout
12.About page layout 2
13.Daliy post layout
14.Quotation layout
15.Day by day post layout
16.Fixed Box Layout
17.Using Fixed height and width to create layout
18.Layout input controls with css
19.Using table to layout form controls
20.Form Layout with HTML Example
21.Site map layout
22.Poem layout
23.Nested style layout
24.Liquid Layout
25.Fixed Width Layout
26.Column span for four column layout
27.How tables linearize for layouts
28.Centering a layout horizontally
29.Creating a maximum-width layout
30.Nested Layout Example
31.Gallery layout
32.Link navigation layout
33.Link topic layout
34.Post layout
35.Three link layout
36.Card layout page
37.Even column layout
38.Box layout
39.Two column layout, 1024 pixel width
40.Content area layout
41.Code layout
42.Page layout with position:absolute;
43.Two-column layout with fixed width and height
44.Using margin to create offset for layout
45.Layout with three layers
46.position:fixed; layout
47.Layout with position:absolute;