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

Does anyone know why the square doesn't show in my site?

I am in the Grouping Selectors steps. I copied the code from the video. I should be showing a square, circle, and ellipse. Everything shows but the square, can anyone understand why?

<!DOCTYPE html> <html> <head> <title> Selector Groups </title> <link rel="stylesheet" href="css/style.css"> </head> <body> <div class="square"></div> <div class="circle"></div> <div class="ellipse"></div> </body> </html>

4 Answers

Hi Lindsey.

In the code you posted, I see a value for width but nothing for height.

does the square have any CSS styles on it. If it doesnt then it is just a div and is invisible.

This is what I have for the CSS styles:

/* Shapes */

.square { display: inline-block; margin: 0 15px; width: 200px; background-color: lightcoral; }

Is this invisible?

Yes, that was the issue! Thank you!!