• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 20. Styling a Page for Print > Styling the <h1> Element

Styling the <h1> Element

The <h1> element will be styled very simply with border-bottom and margin-bottom as shown in Listing 20.10 and Figure 20.2.

Listing 20.10. CSS Code for Styling the <h1> Element

body
{
    font: 100% georgia, times, serif;
    background: #fff;
    color: #000;
}

h1
{

    border-bottom: 1px solid #999;
					margin-bottom: 1em;
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint