Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

8. Getting Started with CSS: Adding a Li... > Let’s put a line under the welcome m...

Let’s put a line under the welcome message too

Let’s touch up the welcome heading a bit more. How about a line under it? That should set the main heading apart visually and add a nice touch. Here’s the property we’ll use to do that:

image with no caption

The trouble is, if we add this property and value to the combined “h1, h2” rule in our CSS, we’ll end up with borders on both our headings:

image with no caption
image with no caption

So, how can we set the bottom border on just the <h1> element, without affecting the <h2> element? Do we have to split up the rules again? Turn the page to find out...


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial