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 Debugging Styles Solution

tutor added .guest button and kept margin right and left?

Why when all i did was go back into CSS to delete margin right and left then worked perfectly.

Plus they aren't needed anymore so why keep them. Alway being told to keep code consise.

1 Answer

Deleting the margins works for the submit button, but those margins are needed for the buttons in the guest boxes. So by adding the '.guest' you're differentiating these different types of buttons and stopping the margins from applying to the submit button whilst keeping them for the others.