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 trial
Matt Balshaw
579 PointsCoding Help For Smells Like Bakin
I have this code below and when i save the .css it doesn't appear in my refreshed html index page. It stays the same and no background color or text color changes.
.btn { padding: 15px 30px; margin: 40px 0; color: #faf3bc; background: #4fb69f url('img/texture.png') no-repeat right top; border-radius: 5px; -webkit-border-radius: 25px; -moz-border-radius: 25px; text-transform: uppercase; }
3 Answers
Erik McClintock
45,783 PointsMatt,
Are you sure you linked to the stylesheet in your HTML file?
Erik
paul white
13,958 PointsTry temporarily throwing !important at the end of each declaration (I.e., margin: 40px 0 !important; etc.) this will force any other styles that may preceed this. If you save out and refresh and your CSS appears and works this means it was probably being overridden somewhere else in your CSS. That being said I would only use this as an identifier, I wouldn't make a habit of declaring !important often in your CSS.
Thai Huynh
15,293 PointsYou might have made a common error with your selectors mistaking class instead of id. Check your markup.