wp site not centered

4 views
Skip to first unread message

Victor R

unread,
Dec 27, 2018, 12:07:55 PM12/27/18
to WordPress Austin
Hi,
 have a wp site, my web is aligned left, how can i try to center it? if you can provide several ways please
dont manage to center it

many thanks!
Victor

pranav prashar

unread,
Dec 27, 2018, 12:21:23 PM12/27/18
to wordpres...@googlegroups.com
Hello 

I checked your website. Please add this css. 
.site-main {
  1. margin:0 auto;
  2. floatnone;
}

it will make your page centered.

let me know if you have any questions.

Regards
Pranav

--
You received this message because you are subscribed to the Google Groups "WordPress Austin" group.
To post to this group, send email to wordpres...@googlegroups.com
To unsubscribe from this group, send email to wordpress-aust...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/wordpress-austin?hl=en
 
Our meeting information is available at http://www.meetup.com/austinwordpress/
---
You received this message because you are subscribed to the Google Groups "WordPress Austin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wordpress-aust...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan Poynor

unread,
Dec 27, 2018, 2:33:17 PM12/27/18
to wordpres...@googlegroups.com
Pranav's solution will work. If you want the content to be full width instead (since there is no sidebar) you could try just adding this at the bottom of the css file:

.site-main {  width: 100%  }

If that's at the bottom of that file it should override the other .site-main width statements.

DAN

--
Reply all
Reply to author
Forward
0 new messages