Changing width and centering default theme Changing width and centering default theme
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Changing width and centering default theme

Started by Ckesk, February 01, 2008, 03:58:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ckesk

Hi, sorry to be asking such a stupid question, cause I know the answer will make me smack my forhead, but I am at wits end. I am altering the classic theme to match that of my wordpress and SMF forum theme. I have it nearly completely done except that I cant seem to center the index page. I was successful in changing the width, but for some reason it aligns left (i cant find it anywhere in the style.css, template.html that would cause it to go left) I have the main table in template.html with an align="center". Nothing seems to work. Is there something hidden that I might be missing? I can PM or copy/past whatever section of files you need.

Thanks in advance.

The site in question is http://ckesk.net

Nibbler

Add the standard centering code into your css for the body tag.


margin-left: auto;
margin-right: auto;