Workshop › Traffic light › Step 2 of 12
The box gets a size, a dark color and rounded corners: the body of the traffic light.
```css
.light {
width: 90px;
height: 250px;
background: #222;
border-radius: 16px;
}
```.light styles the element with class="light".width and height set its size in pixels; background its color; border-radius rounds the corners.Write the rule inside <style>, under the body rule.
Skills: Styling with CSS
← An empty box Three lamps inside →