Adding a Border Around an Image

At times, you will need to set an image apart from the background or surrounding content to make it stand out. One way to create this effect is to place a border around the image. A border can draw attention to an image and it can be part of a stylistic look throughout a site. Sometimes, a border can also indicate a link. There are two ways to define a border—in this exercise, you’ll use CSS to create the border but you’ll also learn about the second method of applying the border attribute to the image tag.

1.
Select the studioPhoto rule from the All Rules list in the CSS Styles Panel and click the Edit Style button in the bottom of the panel. Rules appear in the order that you created them, with the oldest at ...

Get macromedia Dreamweaver 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.