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

CSS

Issues with "Browse Our Cupcakes" button

I have it in correctly. Yet my button won't change to the correct color, or allow me to put in margins or padding. It simply stays there as "Browse Our Cupcakes" in teal text.

This is how I have it in:

.btn {
  padding: 15px 30px;
  margin: 40px 0;
  color: #faf3bc;
  background: #4fb69f url('img/texture.png') no-repeat right top;
  border-radius: 25px;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  text-transform: uppercase;
}

Please help. Thank you!

3 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

@Jamil – Do you have a working link I can check out? It sounds like your CSS isn't properly linked. I can't be sure what it is until I see your HTML. Please post it here or with Codepen.

Thanks!

Hey Guil,

Thanks a lot for your help but I actually just figured it out. It took me forever, but after a few little tweaks here and there I got it to work. I had to make a few changes to my HTML. The worst part was that I left out a single "=" and it screwed up the whole thing haha. Thanks again for your response.

Jamil

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

You're welcome. I'm glad that you got it – nice work!