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

Border

The border properties specify the width, color, and style of the border of an element. Shorthand border properties include border-top, border-bottom, border-right, border-left, and border as shown in Listing 5.11.

Listing 5.11. CSS Code Containing Various Shorthand border Properties

p { border-top: 1px solid red; }
p { border-right 1px solid red; }
p { border-bottom: 1px solid red; }
p { border-left: 1px solid red; }
p { border: 1px solid red; }


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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