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

Styling the <em> Element

The <em> element will be used to house the second background image—the bottom of the round-cornered box. This means it must be given the same width as the <h2> element in order for the two images to line up properly.

However, because the <em> is an inline element, it will ignore any width that is specified. The solution is to set it to display: block; before applying a width.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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