Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 10, 2009, 12:00 AM   #1
corywoolf
macrumors 65816
 
corywoolf's Avatar
 
Join Date: Jun 2004
Send a message via Skype™ to corywoolf
Simple CSS Image Gallery Problem

Hello,

I am putting some finishing touches on a website I built with RapidWeaver and was wondering how to modify the CSS to make 2 rows of 5 images in the photo gallery instead of the current rows of 3 images. I tinkered with the CSS for about an hour tonight and kept getting strange results. I know it has to do with "Float" and "Clear", but I am having trouble figuring out how to do something that should be a simple fix. I have taken some basic XHTML and CSS coding courses, but that was 4 years ago...

Anyone with some web development experience, could you please take a look and give some hints/tips on how to achieve this?

https://allstatemichiganquote.com/page10/page10.html

Thanks in advance,

- Cory

Attached is the style sheet and html pages.
Attached Files
File Type: zip ImageGallery.zip (547.6 KB, 33 views)
corywoolf is offline   0 Reply With Quote
Old Sep 10, 2009, 12:29 AM   #2
nuxx
macrumors member
 
Join Date: Jun 2007
Location: Tokyo
Well, you've got a lot of CSS there but at a cursory glance I would suggest taking a look at the file 800.css where the declaration;

Code:
#content { width: 550px; }
is limiting the content area to a width of 550px.

Try changing it to

Code:
#content { width: 100%; }
so it expands to fit the width of the parent element and allows 2 rows of 5 images.
nuxx is offline   0 Reply With Quote
Old Sep 12, 2009, 07:33 PM   #3
corywoolf
Thread Starter
macrumors 65816
 
corywoolf's Avatar
 
Join Date: Jun 2004
Send a message via Skype™ to corywoolf
Quote:
Originally Posted by nuxx View Post
Well, you've got a lot of CSS there but at a cursory glance I would suggest taking a look at the file 800.css where the declaration;

Code:
#content { width: 550px; }
is limiting the content area to a width of 550px.

Try changing it to

Code:
#content { width: 100%; }
so it expands to fit the width of the parent element and allows 2 rows of 5 images.
Thanks a ton!
corywoolf is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone CSS background-image size problems NickFalk Web Design and Development 2 Mar 13, 2012 04:45 PM
Weird problem on website? kclimson Web Design and Development 1 Nov 19, 2011 07:35 PM
Image autoresizing problem sanna123 MacBook Pro 0 Jan 24, 2011 12:11 AM
iPad Image Selection Problems CosmicChild87 iPhone/iPad Programming 7 Nov 4, 2010 12:31 PM
Looking for a simple PHP image gallery dolphin842 Web Design and Development (archive) 10 Jun 21, 2005 02:56 AM


All times are GMT -5. The time now is 02:36 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC