Close

Results 1 to 5 of 5

Thread: Layers

  1. #1
    DF VIP Member wizer's Avatar
    Join Date
    Jul 2001
    Location
    daan saaf
    Posts
    2,594
    Thanks
    1
    Thanked:        8
    Karma Level
    402

    Layers

    Hi Gays

    Can someone please tell me htf I centre a series of layers on a page. I have a whole site designed and layed out in layers. What I want is for the site to be centered in all browser resolutions, not fixed to one position. Is this possible?

    I dont want to use tables is poss

    Cheers fans
    Photography: Nikon D50 - 18-55mm, 70-300mm, 105mm Macro, 2 x 2gb SD Cards, Jessops Tripod, LowePro Rucksack

  2. #2
    DF VIP Member WTD's Avatar
    Join Date
    Mar 2001
    Location
    Tokyo, Japan
    Posts
    3,256
    Thanks
    0
    Thanked:        0
    Karma Level
    492

    Default Re: Layers

    Hello mate

    Take a read about DIV's which should be used for laying out pages. http://www.w3schools.com/tags/tag_div.asp

    If you really do mean layers, they are covered in DHTML http://www.w3schools.com/dhtml/dhtml_intro.asp

    Best of luck any probs, shout!

  3. #3
    DF VIP Member WTD's Avatar
    Join Date
    Mar 2001
    Location
    Tokyo, Japan
    Posts
    3,256
    Thanks
    0
    Thanked:        0
    Karma Level
    492

  4. #4
    DF VIP Member wizer's Avatar
    Join Date
    Jul 2001
    Location
    daan saaf
    Posts
    2,594
    Thanks
    1
    Thanked:        8
    Karma Level
    402

    Re: Layers

    Hello matey.... I'm using Layouts in Dreamweaver. This is the Code:

    Code:
    <!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>WiZeR Index Page</title>
    <style type="text/css">
    <!--
    #Layer1 {
    	position:absolute;
    	left:34px;
    	top:22px;
    	width:180px;
    	height:175px;
    	z-index:1;
    }
    #Layer2 {
    	position:absolute;
    	left:214px;
    	top:22px;
    	width:420px;
    	height:64px;
    	z-index:2;
    }
    #Layer3 {
    	position:absolute;
    	left:214px;
    	top:86px;
    	width:406px;
    	height:54px;
    	z-index:3;
    }
    #Layer4 {
    	position:absolute;
    	left:214px;
    	top:140px;
    	width:420px;
    	height:57px;
    	z-index:4;
    }
    -->
    </style>
    </head>
    
    <body>
    
    
    <div id="Layer1">
      <div align="center"><img src="images/logo1.jpg" alt="logo1" width="180" height="175" /></div>
    </div>
    <div id="Layer2">
      <div align="center"><img src="images/logo2.jpg" alt="" width="420" height="64" /></div>
    </div>
    <div id="Layer3">
      <div align="center"><img src="images/logo3.jpg" width="420" height="54" /></div>
    </div>
    <div id="Layer4">
      <div align="center"><img src="images/logo4.jpg" width="420" height="57" /></div>
    </div>
    
    </body>
    </html>

    I just want the whole lot centered on the page as apposed to a set distance from left.

    Any ideas?
    Photography: Nikon D50 - 18-55mm, 70-300mm, 105mm Macro, 2 x 2gb SD Cards, Jessops Tripod, LowePro Rucksack

  5. #5
    DF VIP Member Frogwell's Avatar
    Join Date
    Nov 2004
    Location
    Scotland
    Posts
    129
    Thanks
    0
    Thanked:        0
    Karma Level
    287

    Default Re: Layers

    Chances are you've already sorted this, but if not:

    width : 750px; (or whatever width you want)
    margin-left : auto;
    margin-right : auto;

Similar Threads

  1. Basics 4: Working with Layers in Photoshop
    By Raptor in forum Adobe Photoshop Tutorials
    Replies: 0
    Last Post: 19th September 2008, 11:19 AM
  2. dual layers (which one)
    By BOYYAKKA in forum Microsoft Consoles
    Replies: 7
    Last Post: 31st August 2008, 03:08 PM
  3. Help with layers???
    By whoyou in forum Web Hosting & Domain Names
    Replies: 2
    Last Post: 23rd November 2004, 04:48 AM
  4. Using Photoshop layers
    By Piper9000 in forum Your Photos & Artwork
    Replies: 9
    Last Post: 29th October 2004, 06:28 PM
  5. Adobe photoshop layers
    By dwf49 in forum Website Coding & Graphics
    Replies: 3
    Last Post: 13th August 2004, 07:11 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •