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 trialCarter De Angelis
4,679 PointsMargin rule not working in CSS.
When I type "margin: 0 auto;" in my css, it isn't recognizing the rule and it fails to update my webpage.
3 Answers
Steven Parker
231,236 PointsDid you remember to save your edit in the workspace, and then refresh your browser?
Carter De Angelis
4,679 PointsYes I did. I notice that rules/functions work when they change color...but as I typed "margin: 0 auto;" there was no change of color. Therefore I knew that it wasn't going to work anyway. Also, sometimes as I type things a dropdown appears, to finish what I am typing...and nothing appears when typing "margin."
Steven Parker
231,236 PointsIt might help to see your complete code. Or better yet, use the snapshot function in the workspace and provide the link to that.
Carter De Angelis
4,679 PointsHi, thank you. I figured out that I forgot the ";" in the function lol. Thank you though.