Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   Center align comment box? (http://forum.bytesforall.com/showthread.php?t=11981)

jasontbedell Jan 3, 2011 06:30 AM

Center align comment box?
 
Hello,
The background of litteacher.com is 1142px, but the actual content is 1101px.
I was able to resize the comment box to 1101px, but it is left-aligned instead of center.
I tried each of the following:
Code:

ul.commentlist{
align:center;
}
div#respond {
align:center;
}
div.comment-container {
align:center;
}

I also tried adding align:center; in the Comment Form Style section of ATO.

I'm sure that I must be missing something simple. Does anyone have any ideas what it might be?
Running WP 3.04 and Atahualpa 3.5.3.

Thank you for your help,
Jason Bedell.

lmilesw Jan 3, 2011 08:01 AM

Looking at your site I am not real clear on what you are trying to do.

align:center is not proper CSS code. to center align a div you give it a width and then set the left and right margins to auto.

jasontbedell Jan 3, 2011 08:24 AM

Thanks for the css tip. If you look at a single-post, the comment section starts immediately at the left of the page. I would to center it (which would move it approximately 69px to the right).
http://litteacher.com/do-you-speak-academia/?

I tried this, but it didn't work. Am I styling the wrong section?
Code:

ul.commentlist{
width:1101px
margin-left: auto;
margin-right: auto;
}
div#respond {
width:1101px
margin-left: auto;
margin-right: auto;
}
div.comment-container {
width:1101px
margin-left: auto;
margin-right: auto;
}


lmilesw Jan 3, 2011 08:39 AM

If you are trying to center the comment area without regard to the sidebar I am not sure how or if you can accomplish that without getting into some crazy CSS.


All times are GMT -6. The time now is 03:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.