| | #1 |
| Success Feels Good War Room Member Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
|
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 | |
| |
| | #2 |
| PLR-Diva.com War Room Member Join Date: 2009
Posts: 197
Thanks: 7
Thanked 169 Times in 28 Posts
|
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 | |
| |
| The Following User Says Thank You to Selena85 For This Useful Post: |
| | #3 |
| Warrior Member Join Date: 2010
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
|
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. |
| |
| The Following User Says Thank You to fr0ke For This Useful Post: |
| | #4 | |
| Success Feels Good War Room Member Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
|
Hmmmm... fluid layouts. I'll check it out. Thanks. | |
| |
| | #5 | |
| Success Feels Good War Room Member Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
|
Thanks | |
| |
| | #6 |
| VIP Warrior War Room Member Join Date: 2007 Location: Cincinnati, OH and beautiful Park City, UT
Posts: 1,757
Thanks: 1,463
Thanked 924 Times in 570 Posts
|
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 |
| | |
| |
| The Following User Says Thank You to Don Schenk For This Useful Post: |
| | #7 |
| Success Feels Good War Room Member Join Date: 2005
Posts: 395
Thanks: 69
Thanked 108 Times in 63 Posts
|
Don, thanks a lot for the in depth reply! Much appreciated.
|
| |
| | #8 |
| Warrior Member Join Date: 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
|
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> 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. | |
| |
| | #9 |
| Web Result Guru War Room Member Join Date: 2010 Location: Azusa, California
Posts: 21
Thanks: 1
Thanked 1 Time in 1 Post
|
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 |
|
[aKa] Web Results Guru - Web Strategist and Internet Enthusiast, Netsologist, Internet Marketer, Father, Husband, Success and Challenge Junky Chief Netsologist @ netsology.com | Twitter | Facebook | Personal Site | Resource Site | |
| |
|
| Bookmarks |
| Tags |
| dividing, equally, page, photos, web |
| |