Create a new rule to target both the `cap` and `sleeve` classes, and set `display` to `inline-block`

It looks like your sleeve disappeared, but don’t worry – it’s still there. What happened is that your new cap div is taking up the entire width of the marker, and is pushing the sleeve down to the next line.

This is because the default display property for div elements is block. So when two block elements are next to each other, they stack like actual blocks. For example, your marker elements are all stacked on top of each other.

To position two div elements on the same line, set their display properties to inline-block.

Create a new rule to target both the cap and sleeve classes, and set display to inline-block.

I put in css

.cap .sleeve {
display: inline-block;
}

Please provide a link to the Step. Thanks

step 78 in css colored markers

If you want to use multiple classes on the same style they need to be separated by comma.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.