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
Bryan Valencia
Full Stack JavaScript Techdegree Student 4,733 PointsCss Foundations: grouping and modifying- blank page
When I grouped my selectors and refreshed my Chrome browser, nothing showed up. My code looks fine to me but maybe another set of eyes will have an easier time finding my error?
This is Html
<html>
<head>
<title>Css Foundations</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="Css/grouping.css">
</head>
<body>
<div class="base"></div>
<div class="base radius"></div>
<div class="base radius ellipse"></div>
</body>
</html>
This is CSS
.base {
display: inline-block;
width: 200px;
height: 200px;
margin: 0 15px;
background-color: cornflowerblue;
}
.radius {
border-radius: 50%;
}
.ellipse {
height: 120px;
}
2 Answers
Jeff Busch
19,287 PointsHi Bryan,
I copied and pasted your code and it displayed in my browser (Chrome); a blue square, circle, and ellipse. Are you sure Css/grouping.css is correct? The first c is capitalized.
Jeff
Bryan Valencia
Full Stack JavaScript Techdegree Student 4,733 PointsHey Jeff, thanks for the advice. The folder was fine. I literally have no idea what fixed it, but it it better now. Virtually the same code. Only thing that was added was type="text/css" in the html link tag. I only added that because Netbeans suggested it, but it'd never been necessary before when linking a stylesheet, so go figure. Thanks anyway though!