Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE DREAMWEAVER:HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Re: AP Divs... about to lose my last ounce of sanity

COW Forums : Adobe Dreamweaver

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Fernando MolRe: AP Divs... about to lose my last ounce of sanity
by on Jan 4, 2010 at 4:02:47 pm

If you want to center your divs first you should design your site aligned to the top left of your page.

Then, you can create a "wrapper" div around all of your AP divs and with CSS assign a "relative" position to the wrapper and center it with "auto" margins.

The CSS for the wrapper should look like this (Note that the width should be the width of your content):

#wrapper {
position: relative;
width: 1024px;
margin-right: auto;
margin-left: auto;
}


You can find a Tutorial on how to center a "wrapper" div here.

I hope this helps

*Always share a link to your site and rate the posts. This is a free service for you and for us.


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]