Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 01-12-2011, 03:53 AM   #1
New Member
 
Join Date: Jan 2007
Location: Skokie, IL
Posts: 24
Send a message via AIM to emak Send a message via Yahoo to emak
Default centering multiple layers

It's been awhile since i've worked on a project so VERY rusty. I created a website for a client via flash. Then they came around asking why it can't be viewed on ipads, iphones, etc...basically mobile devices. My boss needed a quick fix, so i redesigned the website in Illustrator, sliced it up and placed all the slices in individual layers via dreamweaver lined and linked everything up.

I'm sure i know how to fix this and for the life of me can't remember.

Bascially the site i created is all aliged to the top left of the page. I need to center the entire site (layers).

The site is:
http://ericwmak.com/index_DCS_html.html

Any help would be greatly appreciated. I've tried searching and google, found somethings but can't find something that will help.

Thanks.
emak is offline   Reply With Quote


Old 01-12-2011, 12:11 PM   #2
Mug
Bronze Member
 
Join Date: Dec 2010
Posts: 62
Default

The site is pretty div heavy so if you have more time to work on this at a later date I would suggest altering the layout. In answer to your question you could wrap a div around all the internal divs. Give it an id of container and then in your css put something like:

#container {
width: (input the width here)
padding: 0 auto;
margin: 0 auto;
}

Give me a shout if you need any more help on this. I'm in the office all day.


*update*

Do you need it vertically aligning too? If so the best option is to use absolute positioning. Take a look at how I have done it here:
http://www.yomzoo.com/
__________________
Mug
Web Design Chester | Check out our latest post on the Job Centre

Last edited by Mug; 01-12-2011 at 12:21 PM. Reason: re-read post
Mug is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT. The time now is 06:14 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.