![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
DIFFERENT RESOLUTIONS AND LAYERS
Hi I created a webpage in dreamweaver 8 using layers, looks great when viewed
in 1680x1050, but when viewed in lower resolutions the page is not centered. here is my code, any help greatly appreciated for a novice like me. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /> <title>Untitled Document</title> <style type='text/css'> <!-- body { background-image: url(HOMEPAGE JPEGS/image400.jpg); background-repeat: repeat; } #Layer1 { position:absolute; width:194px; height:36px; z-index:1; left: 354px; top: 8px; } #Layer2 { position:absolute; width:374px; height:144px; z-index:2; left: 549px; top: 2px; } #Layer3 { position:absolute; width:200px; height:115px; z-index:3; left: 243px; top: 172px; } #Layer4 { position:absolute; width:198px; height:115px; z-index:3; left: 919px; top: 5px; } #Layer5 { position:absolute; width:194px; height:37px; z-index:4; left: 355px; top: 55px; } #Layer6 { position:absolute; width:193px; height:37px; z-index:5; left: 355px; top: 104px; } #Layer7 { position:absolute; width:765px; height:40px; z-index:6; left: 354px; top: 148px; } #Layer8 { position:absolute; width:750px; height:216px; z-index:7; left: 356px; top: 190px; } #Layer9 { position:absolute; width:768px; height:206px; z-index:8; left: 356px; top: 408px; } #Layer10 { position:absolute; width:343px; height:208px; z-index:9; left: 356px; top: 626px; } #Layer11 { position:absolute; width:763px; height:38px; z-index:10; left: 355px; top: 843px; } --> </style></head> <body> <div align='CENTER'> <div id='Layer2'> <div align='center'><img src='HOMEPAGE JPEGS/AK LOGO.jpg' width='356' height='141' /></div> </div> </div> <p align='center'>&nbsp;</p> <div id='Layer1'> <div align='left'><img src='HOMEPAGE JPEGS/MORE SHIRTS.jpg' width='192' height='34' /></div> </div> <div id='Layer4'><img src='HOMEPAGE JPEGS/MUGSHOT.jpg' width='196' height='132' /></div> <div id='Layer5'><img src='HOMEPAGE JPEGS/REAL MUGS.jpg' width='192' height='34' /></div> <div id='Layer6'><img src='HOMEPAGE JPEGS/BASKET BANNER.jpg' width='191' height='34' /></div> <div id='Layer7'><img src='HOMEPAGE JPEGS/BANNER HIGH.jpg' width='760' height='37' /></div> <div id='Layer8'><img src='HOMEPAGE JPEGS/QUAD BOX.jpg' width='755' height='213' /></div> <div id='Layer9'><img src='HOMEPAGE JPEGS/QUAD BOX2.jpg' width='755' height='213' /></div> <div id='Layer10'><img src='HOMEPAGE JPEGS/QUAD BOX3.jpg' width='755' height='213' /></div> <div id='Layer11'><img src='HOMEPAGE JPEGS/BANNER LOW.jpg' width='759' height='35' /></div> </body> </html> |
|
|||
|
Re: DIFFERENT RESOLUTIONS AND LAYERS
Never ever use the insert layer thing in DW, it will drive you around the
bend. You need to learn CSS and a good start is here: http://www.w3schools.com/css/default.asp -- Kind Regards Paul Dell .................................. An Eye of Menorca www.dellimages.com .................................. Blog www.paul-dell.com "HTMLMONKEY" <webforumsuser@macromedia.com> wrote in message news:fo2fm9$ehp$1@forums.macromedia.com... > Hi I created a webpage in dreamweaver 8 using layers, looks great when > viewed > in 1680x1050, but when viewed in lower resolutions the page is not > centered. > here is my code, any help greatly appreciated for a novice like me. > <!DOCTYPE > html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' > 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html > xmlns='http://www.w3.org/1999/xhtml'> <head> <meta > http-equiv='Content-Type' > content='text/html; charset=iso-8859-1' /> <title>Untitled > Document</title> > <style type='text/css'> <!-- body { background-image: url(HOMEPAGE > JPEGS/image400.jpg); background-repeat: repeat; } #Layer1 { > position:absolute; width:194px; height:36px; z-index:1; left: 354px; top: > 8px; } #Layer2 { position:absolute; width:374px; height:144px; z-index:2; > left: 549px; top: 2px; } #Layer3 { position:absolute; width:200px; > height:115px; z-index:3; left: 243px; top: 172px; } #Layer4 { > position:absolute; width:198px; height:115px; z-index:3; left: 919px; > top: 5px; } #Layer5 { position:absolute; width:194px; height:37px; > z-index:4; left: 355px; top: 55px; } #Layer6 { position:absolute; > width:193px; height:37px; z-index:5; left: 355px; top: 104px; } #Layer7 { > position:absolute; width:765px; height:40px; z-index:6; left: 354px; top: > 148px; } #Layer8 { position:absolute; width:750px; height:216px; > z-index:7; > left: 356px; top: 190px; } #Layer9 { position:absolute; width:768px; > height:206px; z-index:8; left: 356px; top: 408px; } #Layer10 { > position:absolute; width:343px; height:208px; z-index:9; left: 356px; > top: 626px; } #Layer11 { position:absolute; width:763px; height:38px; > z-index:10; left: 355px; top: 843px; } --> </style></head> <body> <div > align='CENTER'> <div id='Layer2'> <div align='center'><img > src='HOMEPAGE > JPEGS/AK LOGO.jpg' width='356' height='141' /></div> </div> </div> <p > align='center'>&nbsp;</p> <div id='Layer1'> <div align='left'><img > src='HOMEPAGE JPEGS/MORE SHIRTS.jpg' width='192' height='34' /></div> > </div> > <div id='Layer4'><img src='HOMEPAGE JPEGS/MUGSHOT.jpg' width='196' > height='132' > /></div> <div id='Layer5'><img src='HOMEPAGE JPEGS/REAL MUGS.jpg' > width='192' > height='34' /></div> <div id='Layer6'><img src='HOMEPAGE JPEGS/BASKET > BANNER.jpg' width='191' height='34' /></div> <div id='Layer7'><img > src='HOMEPAGE JPEGS/BANNER HIGH.jpg' width='760' height='37' /></div> <div > id='Layer8'><img src='HOMEPAGE JPEGS/QUAD BOX.jpg' width='755' > height='213' > /></div> <div id='Layer9'><img src='HOMEPAGE JPEGS/QUAD BOX2.jpg' > width='755' > height='213' /></div> <div id='Layer10'><img src='HOMEPAGE JPEGS/QUAD > BOX3.jpg' > width='755' height='213' /></div> <div id='Layer11'><img src='HOMEPAGE > JPEGS/BANNER LOW.jpg' width='759' height='35' /></div> </body> </html> > |
|
|||
|
Re: DIFFERENT RESOLUTIONS AND LAYERS
What a friggin' mess.
This is not a resolution issue, just so you'll know. It's a browser viewport width issue. The same page will look the same on ANY resolution screen, as long as the browser has the same width. > the page is not centered. Of course not. That's because you have used 'layers,' which, being absolutely positioned are errr absolutely positioned. Change this - </head> to this - <style type="text/css"> <!-- body { text-align:center; } #wrapper { text-align:left; width:768px; margin:0 auto;position:relative; } /* 760px will display on an 800px screen maximized browser window without */ /* horizontal scrollbars. Your width, being a bit more, may drop those scrollbars.*/ --> </style> </head> change this - <body ...> to this - <body ...> <div id="wrapper"> and this - </body> to this - <!-- /wrapper --> </div> </body> and see if that helps. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "HTMLMONKEY" <webforumsuser@macromedia.com> wrote in message news:fo2fm9$ehp$1@forums.macromedia.com... > Hi I created a webpage in dreamweaver 8 using layers, looks great when > viewed > in 1680x1050, but when viewed in lower resolutions the page is not > centered. > here is my code, any help greatly appreciated for a novice like me. > <!DOCTYPE > html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' > 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html > xmlns='http://www.w3.org/1999/xhtml'> <head> <meta > http-equiv='Content-Type' > content='text/html; charset=iso-8859-1' /> <title>Untitled > Document</title> > <style type='text/css'> <!-- body { background-image: url(HOMEPAGE > JPEGS/image400.jpg); background-repeat: repeat; } #Layer1 { > position:absolute; width:194px; height:36px; z-index:1; left: 354px; top: > 8px; } #Layer2 { position:absolute; width:374px; height:144px; z-index:2; > left: 549px; top: 2px; } #Layer3 { position:absolute; width:200px; > height:115px; z-index:3; left: 243px; top: 172px; } #Layer4 { > position:absolute; width:198px; height:115px; z-index:3; left: 919px; > top: 5px; } #Layer5 { position:absolute; width:194px; height:37px; > z-index:4; left: 355px; top: 55px; } #Layer6 { position:absolute; > width:193px; height:37px; z-index:5; left: 355px; top: 104px; } #Layer7 { > position:absolute; width:765px; height:40px; z-index:6; left: 354px; top: > 148px; } #Layer8 { position:absolute; width:750px; height:216px; > z-index:7; > left: 356px; top: 190px; } #Layer9 { position:absolute; width:768px; > height:206px; z-index:8; left: 356px; top: 408px; } #Layer10 { > position:absolute; width:343px; height:208px; z-index:9; left: 356px; > top: 626px; } #Layer11 { position:absolute; width:763px; height:38px; > z-index:10; left: 355px; top: 843px; } --> </style></head> <body> <div > align='CENTER'> <div id='Layer2'> <div align='center'><img > src='HOMEPAGE > JPEGS/AK LOGO.jpg' width='356' height='141' /></div> </div> </div> <p > align='center'>&nbsp;</p> <div id='Layer1'> <div align='left'><img > src='HOMEPAGE JPEGS/MORE SHIRTS.jpg' width='192' height='34' /></div> > </div> > <div id='Layer4'><img src='HOMEPAGE JPEGS/MUGSHOT.jpg' width='196' > height='132' > /></div> <div id='Layer5'><img src='HOMEPAGE JPEGS/REAL MUGS.jpg' > width='192' > height='34' /></div> <div id='Layer6'><img src='HOMEPAGE JPEGS/BASKET > BANNER.jpg' width='191' height='34' /></div> <div id='Layer7'><img > src='HOMEPAGE JPEGS/BANNER HIGH.jpg' width='760' height='37' /></div> <div > id='Layer8'><img src='HOMEPAGE JPEGS/QUAD BOX.jpg' width='755' > height='213' > /></div> <div id='Layer9'><img src='HOMEPAGE JPEGS/QUAD BOX2.jpg' > width='755' > height='213' /></div> <div id='Layer10'><img src='HOMEPAGE JPEGS/QUAD > BOX3.jpg' > width='755' height='213' /></div> <div id='Layer11'><img src='HOMEPAGE > JPEGS/BANNER LOW.jpg' width='759' height='35' /></div> </body> </html> > |
|
|||
|
Re: DIFFERENT RESOLUTIONS AND LAYERS
Anybody that uses absolute positioning needs help :)
-- Kind Regards Paul Dell .................................. An Eye of Menorca www.dellimages.com .................................. Blog www.paul-dell.com "HTMLMONKEY" <webforumsuser@macromedia.com> wrote in message news:fo2i07$gpj$1@forums.macromedia.com... > hi modded the code as per murrays reply but this just moved everything to > the > right in 1680x1050 and did nothing on a lower resolution. going to have a > look > at css thanks pablo and murray for you replies > |
|
|||
|
Re: DIFFERENT RESOLUTIONS AND LAYERS
You *WILL* need to reposition your layers, but luckily, all will need the
same offset to the left. Can you post a link to your page, please? -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "HTMLMONKEY" <webforumsuser@macromedia.com> wrote in message news:fo2i07$gpj$1@forums.macromedia.com... > hi modded the code as per murrays reply but this just moved everything to > the > right in 1680x1050 and did nothing on a lower resolution. going to have a > look > at css thanks pablo and murray for you replies > |
|
|||
|
Re: DIFFERENT RESOLUTIONS AND LAYERS
:grin; fantastic advice - Murray *ACE* My page now loads in 1680x1050
centered and 1024x768 centered after I moved my layers to the left side as suggested. I cannot post a link as it is not online yet, but once I have made my first $million I will call you up for a re-design many thanks dan |
|
|||
|
Re: DIFFERENT RESOLUTIONS AND LAYERS
I've already made a large purchase, so please hurry....
-- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "HTMLMONKEY" <webforumsuser@macromedia.com> wrote in message news:fo2nb5$lvn$1@forums.macromedia.com... > :grin; fantastic advice - Murray *ACE* My page now loads in 1680x1050 > centered and 1024x768 centered after I moved my layers to the left side as > suggested. I cannot post a link as it is not online yet, but once I have > made > my first $million I will call you up for a re-design many thanks dan > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|