Centering multiple layers

This is a discussion on "Centering multiple layers" within the Web Page Design section. This forum, and the thread "Centering multiple layers are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 17th, 2006, 18:13
New Member
Join Date: Jan 2006
Age: 21
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Centering multiple layers

I'm trying to design my personal site. I have it set up to where it would fit perfectly horizontally in an 800x600 screen with a background layout, an iframe and a menu layer. I would like to be able to set everything up so that if the resolution gets bigger, all of the conent will stay in the same relative position, but be centered on the page. Any ideas?

the background is in a layer that is centered. The menu layer needs to be about 50px below the top of the background image and about 100px to the left of the left side of the bg image. the iframe should be about 20px from the bottom of the bottom of the bg image and about 40px from the right of the right side of the background image.

here's what my layout looks like, and some arrows as to how it should be. I haven't made the menu yet, so it isn't on there.
http://www.quest4him.org/shantih/layoutexe.gif

here's the code that shows what i have so far:
http://www.quest4him.org/shantih/layoutcodeexe.gif
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 19th, 2006, 04:23
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering multiple layers

This here is one step in your process, it'll help center the page on all resolutions:

Wrap everything in this:
<body>
<div id="wrap">

.. all code goes here ..

</div>
</body>


Then, do this with CSS:
#wrap {width:760px; position:relative; left:50%; margin-left:-380px;}

It's late and I'm tired, so that's probably right. Assuming it is, you can go from there and position the other parts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 19th, 2006, 17:48
New Member
Join Date: Jan 2006
Age: 21
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering multiple layers

Wow! thanks so much. I figured there was some key line like that that i was missing. ^_______^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
centering, multiple, layers

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple rollover images change multiple images joshlindem Web Page Design 4 Apr 18th, 2008 09:11
Using layers in CSS jwalker80 Web Page Design 3 Dec 21st, 2005 14:08
Layers chris123 Web Page Design 3 Jun 1st, 2005 07:52
Centering layers in a page gwx03 Web Page Design 9 Nov 26th, 2003 19:55


All times are GMT. The time now is 07:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42