This is a discussion on "Positioning images" within the Web Page Design section. This forum, and the thread "Positioning images are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Positioning images
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Positioning images
Hi,
I am trying to create a gallery page. In it will be 9 thumbnail images (75x75px), which will each be links to the full image. They sit within a div called 'content'. Within that area I want them to be in 3 rows each of 3 thumbnails. With a margin around each image, and with them spaced equally and neatly within the div. The div is height: 470px and width 400px. I'm not sure which method of positioning to use, and how to apply it to so many images. Will each image need its own div? I want my website to be as accessible as possible (diff browsers & ease of use by all). Any ideas greatfully received. I haven't done any coding for 2 mths and my brain has gone to mush. Many thanks, Ruby |
|
|
|
#2
|
|||
|
|||
|
Re: Positioning images
I would do this
|
|
#3
|
||||
|
||||
|
Re: Positioning images
Make .clear in Karines code be this so it works in all browsers
|
|
#4
|
|||
|
|||
|
Re: Positioning images
In which browser does my clear not work?
|
|
#5
|
|||
|
|||
|
Re: Positioning images
http://www.newguyinennis.com/photography/ feel free to steal that code or something. I will whip up a "Photo Gallery" sample tonight.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Positioning images
Thank you all. Just about to try out the coding. Will let you know if I succeed.
Ruby |
|
#7
|
||||
|
||||
|
Re: Positioning images
Quote:
|
|
#8
|
||||
|
||||
|
Re: Positioning images
As promised
Breaking CSS Floats Hopefully my site isn't too broken. I haven't done any testing on the articles CSS file in anything but Safari. Oh well, I'll work on it tomorrow. |
|
#9
|
|||
|
|||
|
Re: Positioning images
Thanks Ryan, I'll check that out.
|
|
#10
|
|||
|
|||
|
Re: Positioning images
But my way works and is uber sexy and because I am the Mooj, you should just do what I say! hehe. Or don't because I am loopy like that.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#11
|
|||
|
|||
|
Re: Positioning images
Hi, thanks for your info - I've used all of your advice to get to my current position. I'm now half way there, but still need to figure out how to stop the lower thumbnails falling off the page, and how to centre images within the content div. Currently wading my way through a text book, but in the meantime here is my screenshot:
http://f7.yahoofs.com/users/aD6RXYyb...as=positioning I'd show you my coding, but I fear it is too dire to reveal......... PS Moojoo - thankyou for the link to your website - it is beautiful - design, photos & words. Last edited by rubyfruit; Jan 30th, 2007 at 19:32. Reason: Dodgey link |
|
#12
|
|||
|
|||
|
Re: Positioning images
I get a blank page at that URL. At any rate place a clearing div after the thumbnails and before the closing <div> of your container. That will clear the float and keep it down.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#13
|
|||
|
|||
|
Re: Positioning images
Dodgey coding alert
:
This is my first attempt at coding a website, and to add to that I ignored it for 2 mths during which time I forgot everything. But I'm guessing (hoping) I can only improve............. ![]() |
|
#14
|
|||
|
|||
|
Re: Positioning images
PS have changes link to image. But basically it is a 2 coloumn design, with the navigation coloumn on the left.
|
|
#15
|
|||
|
|||
|
Re: Positioning images
Hi,
I've fixed my below problem by using clear right instead of clear. However I still need to make some adjustments to my gallery. The first is that I can't get the images to sit central within the column. Should I put them within a div, and centre that (eg. with margin auto?), or should I use a different form of positioning? Also I have decided that I want the margin for each image to be 5px, however I can't get this to take effect. If I change the width to 75px, the images stop sitting in rows of 3, and instead form a line. However by changing the width I do get my margin to take effect. My coding is per Karinne's, except for the change to clear. I have attached a link to a screen shot. http://www.diaphanouslife.com/photo.html Thank you. Ruby |
|
#16
|
|||
|
|||
|
Re: Positioning images
Hi, still struggling with this. I now have two galleries, and can't managed to centre either within their div, despite several hours of trying, doh!
The second gallery has 4 rows each with 5 thumbnails (although it needs to be able to expand to 5 or 6 rows if need be). Each thumbnail is 75x75px with a 5px margin, as before. The div is now 530px wide. In IE 5 the clear right works, but not in any other browser. However in IE 5 I can't get my margin of 5px. In the other browsers the clear is ignored, but the thumbnails respect my request for a margin of 5px. If I try clear both, all but the first row of pics sit beneath the bottom of my page (ie under the nav coloumn). Any help greatly appreciated. Thanks, Ruby |
|
#17
|
|||
|
|||
|
Re: Positioning images
Can you post code? I'm a hands on kind of gal...
|
|
#18
|
|
|