When to use tables

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post June 29th, 2008, 12:22 pm

I'm making a web page that is like a photography photo gallery and I'm wondering whats the best way to display images in a 4x5 manner. Would this be a place I could use tables, or is there a better way?
#define NULL (::rand() % 2)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 29th, 2008, 12:22 pm

  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post June 29th, 2008, 1:48 pm

Hi Spoof,


You could use CSS, Floats, Html or even a Flash album or Lightroom from Adobe.

You could also use a Dreamweaver templete for images.

HTH
http://jungaling.com/katecorner/
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post June 29th, 2008, 2:09 pm

I dropped some nice gallery code on this thread: http://www.ozzu.com/post498882.html?sid=3fd9d8a5668499280cfb70524e5f12f6&sid=02ba830b3bc66c005f230cdc58727d16#p498882

If you mess around with the styling you can make it look very, very nice.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6134
  • Loc: Seattle, WA
  • Status: Offline

Post June 29th, 2008, 3:35 pm

I see nothing wrong with using a table for what you described.
The Beer Monocle. Classy.
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 29, 2007
  • Posts: 481
  • Status: Offline

Post June 29th, 2008, 10:35 pm

I agree with spork. It actually makes a lot of sense to use tables for your purpose.
No Strings Attached: A JavaScript graphics demo.
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Joined: Mar 12, 2007
  • Posts: 6228
  • Loc: South-Africa
  • Status: Offline

Post June 29th, 2008, 11:26 pm

I am going to third that ...
Let's leave all our *plum* where it is and go live in the jungle ...
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Joined: Aug 16, 2003
  • Posts: 2297
  • Loc: UK - England
  • Status: Offline

Post June 30th, 2008, 6:44 am

Id use tables, makes sense, you are displaying tabular data ;)
Codebuddies - Website Development Resource
|INCLUDE(), INCLUDE_ONCE(), REQUIRE() IN PHP | - / - |MICROSOFT CRM 4.0 ONCLICK EVENT WITHIN FORM |
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post June 30th, 2008, 8:08 am

Isn't a gallery just a list of images? That being the case I'd go for a list.

In the end, it matters not. Both can do the job and in the final analysis user will not care or even comprehend the difference. However, if you don your semamtic-shmematic cap for a brief moment then it becomes apparent that the list is the "correct" option.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6134
  • Loc: Seattle, WA
  • Status: Offline

Post June 30th, 2008, 8:13 am

I disagree. He's looking to display a grid of data, not a single-dimensional list. Tables were intended for exactly that purpose.
The Beer Monocle. Classy.
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post June 30th, 2008, 8:46 am

I think you are stretching the definitions of "data" and "tabular data" just a little bit. To my mind, a gallery of thumbnails is not data and is definately not tabular data. A grid of data speaks to me of spreadsheet-type stuff - an ideal, and correct, use of tables.

Lists don't have to be one-dimensional. A gallery of images with links and captions (although layed out in a grid) is not grid-like data but is grid-like only by its styling convention. A small gallery may consist of a single row of 6 images for example, a larger one of many such rows- they just wrap creating a grid-like appearance (which doesn't imply it should be dropped into a table).
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6134
  • Loc: Seattle, WA
  • Status: Offline

Post June 30th, 2008, 9:18 am

I'm not stretching any definitions here. People shy away from tables because they get a bad rap in light of fact that people incorrectly use them to lay out entire pages. This doesn't mean they should be confined to use in only the absolute most datagrid-like situations.

For what Spoof is doing, either would work. I completely agree with where you're coming from. It's just that a lot of people like to shy away and hide in the corner at the first mention of the word "tables", and I'm trying to prevent that. ;)
The Beer Monocle. Classy.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post June 30th, 2008, 9:57 am

Well I ended up using a list because it will allow the gallery to be dynamic in nature, so if there is a row of small images, instead of only having 4 on that row it will fill it to the end.
#define NULL (::rand() % 2)
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6134
  • Loc: Seattle, WA
  • Status: Offline

Post June 30th, 2008, 10:06 am

Makes sense. :thumbsup:
The Beer Monocle. Classy.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post July 3rd, 2008, 1:31 pm

Something like this?

Divs and CSS:

http://missbgraphics.com/gallery/index2.htm

And lIghtbox2 which is close cousin to Adobe Lightroom..and free.

:mrgreen: :mrgreen: :mrgreen:
http://jungaling.com/katecorner/

Post Information

  • Total Posts in this topic: 14 posts
  • Users browsing this forum: No registered users and 130 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.