playing, by Denise

Monday, September 7, 2009

A photo with a border

I've just played a bit with putting a border on an image. The first example below was done with CSS + HTML, and the second was done with HTML. I much prefer the look of the second example which uses a single-celled table.

The first example uses CSS that defines a div called photoBorder. In this case the border is placed around the entire width of the blog entry.

The second example is done with HTML, placing a border around a cell within the table. This has a much more pleasing look to me.

The code for these two examples can be found on the page, in the file titled placeBorderAroundImage.txt.

No comments:

Post a Comment