Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 12th Mar 2010, 12:28 PM   #1
Success Feels Good
War Room Member
 
rushindo's Avatar
 
Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
Arrow
Dividing a Web Page into 20 Equally Sized Rectangles?
Share on: 
fb share twitter share gplus share more share

Can anyone explain how to divide a web page equally into 20 equally size rectangles (that will actually be photos) so that the photos fill the entire page in every browser?

Thanks,
Brandon

Last edited on 12th Mar 2010 at 08:17 PM. Reason: More clarification
rushindo is offline  
Unread 12th Mar 2010, 01:19 PM   #2
PLR-Diva.com
War Room Member
 
Selena85's Avatar
 
Join Date: 2009
Posts: 197
Thanks: 7
Thanked 169 Times in 28 Posts
Default
Re: Dividing a Web Page Equally into 20 Photos?
Share on: 
fb share twitter share gplus share more share

I'm not sure I understood your question but.. There are lots of different monitor resolutions out there... I don't think you can find a solution that works the same way in all of them. In smaller resolutions the photos may create a scrollbar and on higher resolutions there may be some empty space left.

You can try a fluid layout, but it won't be perfect. (fluid changes according to the size of your browser window). Try this: CSS Fluid layout tutorial | NowCSS

>>>TURN YOUR TRAFFIC CAMPAIGN ON FIRE WITH THIS <<<
FREE PINTEREST GRAPHICS PACKAGE
Selena85 is offline  
The Following User Says Thank You to Selena85 For This Useful Post:
Unread 12th Mar 2010, 03:47 PM   #3
Warrior Member
 
Join Date: 2010
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: Dividing a Web Page Equally into 20 Photos?
Share on: 
fb share twitter share gplus share more share

This could be done with some javascript functions that take the current viewport size of the browser and then calculate the size of each image, then resize and load the images accordingly.

Of course, if the images are all different dimensions, it makes the problem exponentially more difficult, so the above assumes the 20 images are all the same dimension.
fr0ke is offline  
The Following User Says Thank You to fr0ke For This Useful Post:
Unread 12th Mar 2010, 08:05 PM   #4
Success Feels Good
War Room Member
 
rushindo's Avatar
 
Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
Default
Re: Dividing a Web Page Equally into 20 Photos?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Selena85 View Post

I'm not sure I understood your question but.. There are lots of different monitor resolutions out there... I don't think you can find a solution that works the same way in all of them. In smaller resolutions the photos may create a scrollbar and on higher resolutions there may be some empty space left.

You can try a fluid layout, but it won't be perfect. (fluid changes according to the size of your browser window). Try this: CSS Fluid layout tutorial | NowCSS
Hi there. Basically I mean the web page consists of nothing but 20 different photos. I want it to look neat.

Hmmmm... fluid layouts. I'll check it out. Thanks.
rushindo is offline  
Unread 12th Mar 2010, 08:14 PM   #5
Success Feels Good
War Room Member
 
rushindo's Avatar
 
Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
Default
Re: Dividing a Web Page Equally into 20 Photos?
Share on: 
fb share twitter share gplus share more share

Originally Posted by fr0ke View Post

This could be done with some javascript functions that take the current viewport size of the browser and then calculate the size of each image, then resize and load the images accordingly.

Of course, if the images are all different dimensions, it makes the problem exponentially more difficult, so the above assumes the 20 images are all the same dimension.
Yes the photos are all the exact same dimension. Is there a name for what you described with javascript?

Thanks
rushindo is offline  
Unread 12th Mar 2010, 10:59 PM   #6
VIP Warrior
War Room Member
 
Don Schenk's Avatar
 
Join Date: 2007
Location: Cincinnati, OH and beautiful Park City, UT
Posts: 1,757
Thanks: 1,463
Thanked 924 Times in 570 Posts
Default
Re: Dividing a Web Page into 20 Equally Sized Rectangles?
Share on: 
fb share twitter share gplus share more share

Most webdesign software lets you specify the exact size of tables or cells within a table. Your webpage can be one rectangluar table with cells for the photos - 4 across or 5 across.

So you would make one table with 20 cells in it and spcify the size of the table and the size of each cell. In Dreamweaver the cell size boxes appear at the bottom of the design page. In KompoZer and Nvu, the table with its number of cells appears when you click on insert - table. Then you go to format and table specs then cell specs.

You then insert a photo into each table - one at a time. You can make each photo be a link if you wish.

The size of the page on the monitor of the person viewing the page is determined by the resolution setting of their monitor. You can not control how they have set their system. Your Webpage could appear large or small. You can make the size of cells be determined as a percentage rather than as a specific size. Off hand I don't recall whether you can set the table size as a percentage of the Webpage. If so, make it 100%

:-Don

Don Schenk is offline  
The Following User Says Thank You to Don Schenk For This Useful Post:
Unread 13th Mar 2010, 02:07 AM   #7
Success Feels Good
War Room Member
 
rushindo's Avatar
 
Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
Default
Re: Dividing a Web Page into 20 Equally Sized Rectangles?
Share on: 
fb share twitter share gplus share more share

Don, thanks a lot for the in depth reply! Much appreciated.
rushindo is offline  
Unread 15th Mar 2010, 04:30 PM   #8
Warrior Member
 
Join Date: 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Default
Re: Dividing a Web Page into 20 Equally Sized Rectangles?
Share on: 
fb share twitter share gplus share more share

You could do it in css (avoiding tables) by assigning the images widths based on %, the result would be something like

Code:
<div id='img_block_holder' style='width:90%;'>
 <div class='img' style='width:18%; float:left;'>[img goes here]</div>
 <div class='img' style='width:18%; float:left;'>[img goes here]</div>
 <div class='img' style='width:18%; float:left;'>[img goes here]</div>
 <div class='img' style='width:18%; float:left;'>[img goes here]</div>
 <div class='img' style='width:18%; float:left;'>[img goes here]</div>
</div>
So basically it's saying spread them across 90% of the page (you'd center align that div so it looks nice.. if you want it fully across just make it 100%).

Then Each img is 18% w/a little room for Spacing between the images (rather than 20%) - you'd have to set some margins in the css i.e. margin:1%; - which would put a 1% margin on each side of the img.

Code's not tested, and the inline styles should be put in a external css file but something like that should work across all resolutions.

RankPay - Don't Pay Until You Rank - The best in SEO Services.

RankPay features expert SEO analysis. They will REFUSE your generic keywords and will work with you to pick keywords FREE OF CHARGE.
naffets77 is offline  
Unread 15th Mar 2010, 07:45 PM   #9
Web Result Guru
War Room Member
 
kjcardona's Avatar
 
Join Date: 2010
Location: Azusa, California
Posts: 21
Thanks: 1
Thanked 1 Time in 1 Post
Default
Re: Dividing a Web Page into 20 Equally Sized Rectangles?
Share on: 
fb share twitter share gplus share more share

One thing that you may encounter is the quality of the photos as they get stretched, or the different screen Aspect Ratios from regular to wide screen make a difference.

So just keep that in mind. Thanks

kjcardona is offline  
Closed Thread


Bookmarks

Tags
dividing, equally, page, photos, web


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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:37 PM.