News Header style : Header « Tags « HTML / CSS






News Header style

 



<?xml version="1.0" ?>
<!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" lang="en" xml:lang="en">
<head>
  <title>Channel 7 News</title>
  <style rel="stylesheet" type="text/css">
body {
  background-color: #FFFFFF;
}

.heading {
  border-style: solid;
  border-width: 1px;
  border-color: #000000;
  width: 90%;
  font-family: arial, verdana, helvetica, sans-serif;
  font-size: 22pt;
  text-align: right;
  color: #000000;
  background-image: url("images/seven.gif");
  background-repeat: no-repeat;
  margin: 5px;
  padding: 10px;
}

.page {
  margin: 5px;
  padding: 10px;
  width: 90%;
  border-style: solid;
  border-width: 1px;
  border-color: #000000;
}

.nav {
  margin: 5px;
  padding: 10px;
  width: 90%;
  border-style: solid;
  border-width: 1px;
  border-color: #000000;
  background-color: #efefef;
}

.title {
  font-family: arial, verdana, helvetica, sans-serif;
  font-size: 16pt;
  padding-bottom: 12px;
}

.page {
  font-family: arial, verdana, helvetica, sans-serif;
  font-size: 12pt;
}

a {
  text-decoration: none;
  padding: 3px;
  font-family: arial, verdana, helvetica, sans-serif;
  font-size: 12pt;
}

image {
  
}
</style>
</head>
<body>
<div class="heading">Channel 7 News</div>
<div class="nav">
  <a href="">Home</a>
  <a href="">News</a>
  <a href="">Science</a>
  <a href="">Politics</a>
  <a href="">Entertainment</a>
  <a href="">Sport</a>
  <a href="">Weather</a>
</div>

<div class="page">
<h1>Headlines</h1>
<h3><a href="">Header 1</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</p>

<h3><a href="">Header 3</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</p>


<h3><a href="">Header 2</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</p>

<h3><a href="">Header 1</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</p>

<h3><a href="">Header 2</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</p>

<h3><a href="">Header 3</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</p>

<h3><a href="">Header 4</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</p>

<h3><a href="">Header 5.</a></h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam semper viverra nulla. Sed lacinia feugiat eros.</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 content section
24.Header, image and content
25.h1 padding: 10px
26.A fixed header
27.Adding links in to the header
28.Letter Spacing in Headlines