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

Chapter 7. Border and Margin Controls > Decorating an Element's Border

Decorating an Element's Border

Although you can use the border attribute to set all the border attributes (style, color, and width) at the same time (see the previous section, "Setting an Element's Border" ), you can also set each border attribute individually for the box (Code 7.4 and Figure 7.5), and even on each side (Figure 7.6).

Code 7.4. You can set the border-decoration attributes (style, color, and width) for all four sides at the same time, or you can define each side independently (see the sidebar "Setting Borders on a Side" on the previous page).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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