Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLucas Santos
19,315 PointsWooCommerce isn't letting me center my elements
Hi I already posted a question but as I was looking into my problem I found out that as im trying to style my WooCommerce Mystile theme through a child theme using the help of firebug all my styles work on any element except when I try to center it. Example of me trying to center my Title & Navigation:
h1.site-title {
text-align:center;
margin: auto;
padding:0px;
border:0px;
float:none;
ul#main-nav.nav.fl.parent {
text-align:center;
margin: auto;
padding:0px;
border:0px;
float:none;
}
is there something wrong because like I said ALL my other styles work just fine like border padding & margin
2 Answers
Ivan Rahman
4,547 PointsHave you checked the directory for a themed/child CSS file? I was having trouble with changing a font size in a footer until I realized that the parent theme would override the custom CSS.
Lucas Santos
19,315 PointsNo im definently overriding the parent, every thing but center that is. I even add !important to make sure.
Lucas Santos
19,315 PointsLucas Santos
19,315 PointsNo im definently overriding the parent, every thing but center that is. I even add !important to make sure.