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

Home Forums CSS Centering Content Re: Centering Content


Wouldn’t it be easier to use the same conditional statement being used to add the sidebar to add a class to the content div you’re trying to center? That way you can just control the styles via stylesheet and you don’t have to echo echo out a style tag on the page.