Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help auto padding and centering divs Re: Help auto padding and centering divs

#77316
aspiringWebbie
Participant

If you are wanting the other div to be centered – add another div within the 325width div and add "margin: 0 auto;" to it. Do not set the padding to the main 325px width div – but apply the padding to the div / div’s within the parent container. Maybe this will help?