Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Cannot center #primary on Wordpress Theme
Old 06-04-2012, 06:28 PM Cannot center #primary on Wordpress Theme
Average Talker

Posts: 29
Name: Jen Starbuck
Trades: 0
Hi there,

For the life of me, I cannot figure out how to center the #main or #primary div on my wordpress site. The header is centered, but the main/primary div is staying fixed to the left when I resize the window. Any ideas on how I can fix this?

Link to page with issue: http://starbuckrealtygroup.com/properties/

I have a separate install of Wordpress at this page: http://www.starbuckrealtygroup.com/blog/ where it is working correctly.

I have tried copying my child theme stylesheet from the "blog" site to the "properties" site, but it's still not working. I'm not sure if it's because I'm using a different menu on the "properties" site.

Any ideas suggestions are highly appreciated!!!
jstarbuck is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-05-2012, 05:10 AM Re: Cannot center #primary on Wordpress Theme
chrishirst's Avatar
Defies a Status

Posts: 44,052
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And this is a PHP question because??
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-05-2012, 03:54 PM Re: Cannot center #primary on Wordpress Theme
vangogh's Avatar
Post Impressionist

Posts: 11,185
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Typically the way to center a block level element like a div is to set a width and then set the left and right margins to auto. That will center the element horizontally inside whatever it's container is.

You also wouldn't add any kind of positioning or float to the element.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Design, Development, Marketing, and SEO Tutorials |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Cannot center #primary on Wordpress Theme
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13970 seconds with 11 queries