A picture gallery

This is a discussion on "A picture gallery" within the Website Planning section. This forum, and the thread "A picture gallery are both part of the Planning Your Website category.



Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 15th, 2007, 04:08
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
A picture gallery

What is the best way to display images on a web page? I am building a site and I have several pages dedicated to displaying images in several rows going down each page. Should I just use a table?
Reply With Quote

  #2 (permalink)  
Old Nov 15th, 2007, 07:22
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: A picture gallery

Lightbox - probably th best for what you want!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Nov 15th, 2007, 10:47
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: A picture gallery

Oh I already have that, I meant the page itself. What's the best way of displaying them so that i doesn't look all thrown together.
Reply With Quote
  #4 (permalink)  
Old Nov 15th, 2007, 13:20
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: A picture gallery

No you should use tables. I would set up a div class such as
.gallery

Set each with a width and possibly a height, float it left and have each one follow the next across the page. Inside the div place your image.

You can even put a caption in the div by using <p></p> tags.

Reply With Quote
  #5 (permalink)  
Old Nov 15th, 2007, 13:40
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: A picture gallery

I want to create thumbnails and once they click on the image, it will show up in a lightbox, is this how it should go:

Code: Select all
 
<table>
<tr>
<td>
<div class="gallery"><a href="image.jpg" rel="lightbox"><img src="image.jpg" width="100" height="100" /></a>
</div>
</td>

<td><div class="gallery"><a href="image.jpg" rel="lightbox"><img src="image.jpg" width="100" height="100" /></a>
</div>
</td>
</tr>
</table>
and the css:

Code: Select all
.gallery {float: left}
Reply With Quote
  #6 (permalink)  
Old Nov 15th, 2007, 15:44
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: A picture gallery

Oh my gosh... I'm sorry I had a typo in my last reply. You should not use tables... contrary to what I posted last time.
UGH.

You should be using div's instead of tables. Tables are for tabulated data, not images.

Sorry about that.
Reply With Quote
  #7 (permalink)  
Old Nov 15th, 2007, 16:02
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: A picture gallery

So should I do this:
Code: Select all
 
<div class="gallery><a href="image"><im src="image" width="100"  height="100"></div>
<div class="gallery><a href="image"><im src="image" width="100"  height="100"></div>
Then:
Code: Select all
 
.gallery {float: left}
Also, will these images be displayed vertically or horizontally? I want them to be displayed vertically.
Reply With Quote
  #8 (permalink)  
Old Nov 16th, 2007, 06:52
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: A picture gallery

You would need many divs inside an overall container div.
I think the last code you posted will not work.
Try something like:
<div id="photos">
<div class="gallery><a href="image"><im src="image" width="100" height="100"></div>
<div class="gallery><a href="image"><im src="image" width="100" height="100"></div>
<div class="gallery><a href="image"><im src="image" width="100" height="100"></div>
</div>

#Photos having a set width etc.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #9 (permalink)  
Old Nov 16th, 2007, 13:09
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: A picture gallery

Ah! Thank you, I will definitely try that.
Reply With Quote
  #10 (permalink)  
Old Nov 16th, 2007, 20:25
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: A picture gallery

O sorry I asked the wrong, I meant that I want to display them horizontally, not vertically. I wanted to display them in rows.
Reply With Quote
  #11 (permalink)  
Old Nov 19th, 2007, 13:20
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: A picture gallery

This image is the gallery from stockvault.net. I would like the same layout for my gallery, because not all my thumbnails are the same. My thumbnails are 96x144 and 144x96.
Reply With Quote
  #12 (permalink)  
Old Nov 19th, 2007, 19:57
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: A picture gallery

That should work, if the images are large enough to fit on one row.
If you had float: left on the images remove that.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #13 (permalink)  
Old Nov 19th, 2007, 21:02
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: A picture gallery

So what code should I use?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with picture upload Pss PHP Forum 2 Apr 21st, 2008 20:37
Created Flash Photo Gallery in PhotoShop. How can I put this Gallery INSIDE a page?? BlackReef Flash & Multimedia Forum 3 Dec 13th, 2007 18:30
Help wanted with picture gallery for my website sexyemma Starting Out 5 May 9th, 2007 17:09
create a picture gallery afuller Web Page Design 2 Aug 23rd, 2006 16:44
Random picture survey picture help Jould Web Page Design 6 Feb 25th, 2004 14:07


All times are GMT. The time now is 06:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43