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
Lindsey Davis
2,301 PointsDoes 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
Herb Bresnan
10,658 PointsHi Lindsey.
In the code you posted, I see a value for width but nothing for height.
Devin Scheu
66,191 Pointsdoes the square have any CSS styles on it. If it doesnt then it is just a div and is invisible.
Lindsey Davis
2,301 PointsThis is what I have for the CSS styles:
/* Shapes */
.square { display: inline-block; margin: 0 15px; width: 200px; background-color: lightcoral; }
Lindsey Davis
2,301 PointsIs this invisible?
Lindsey Davis
2,301 PointsYes, that was the issue! Thank you!!