3 replies [Last post]
Filosofo
Offline
newbie
Last seen: 15 years 2 weeks ago
Joined: 2004-11-06
Posts: 2
Points: 0

Using tables, I can “frame” a picture, using different “frame” images for each of the “frame” corners, top, bottom, and sides. But doing so requires using tables for layout, something CSS is supposed to do away with, and besides, it’s not very flexible. Is there a way to use CSS to achieve the same effect? Please see the link below for examples:
Using tables vs. CSS to create picture-frames
Thanks!

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 8 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

"Picture-frame" using CSS instead of tables

Hi Filosofo,
The idea is very similar to some of the methods used to create rounded corners.
If you do a search here or in google you should find some interesting solutions.

Hope that helps

Seamus
Offline
newbie
Last seen: 15 years 2 weeks ago
Timezone: GMT+10
Joined: 2004-11-06
Posts: 3
Points: 0

Re: "Picture-frame" using CSS instead of tables

Filosofo wrote:
Using tables, I can “frame” a picture, using different “frame” images for each of the “frame” corners, top, bottom, and sides. But doing so requires using tables for layout, something CSS is supposed to do away with, and besides, it’s not very flexible. Is there a way to use CSS to achieve the same effect? Please see the link below for examples:
Using tables vs. CSS to create picture-frames
Thanks!

In tables, can you center a thumbnail image on a "35mm slide" background like the thumbs in the image below?

Can a table be incapsulated in CSS to make changing the background at a later date, and positioning/formatting cell contents a breeze? I wouldn't want to have to change each image in each cell individually, especially when down the track I have a large number of thumbnails to edit.

It think I need to use a table on this page but I don't know if I will still have as much control over the images in the cells, but I would probably have better control over lining up the images on the grid.

Thank you. Smile

Filosofo
Offline
newbie
Last seen: 15 years 2 weeks ago
Joined: 2004-11-06
Posts: 2
Points: 0

"Picture-frame" using CSS instead of tables

Thanks to Tony's suggestion, I came up with a solution to my post about "picture-frames" that stacks each piece of the "frame" in separate div's. See the details here.