CSS CSS Basics (2014) Basic Selectors Reusing Classes

I am not seeing my borders when I refresh.

css: .t-border { border-top: 2px grey;} class="primary-content t-border">

5 Answers

change "primary-content t-border" to just "t-border"

Colton Shaw
Colton Shaw
11,929 Points

That will fix the issue for the border, however, that might defeat the purpose they're talking about here. Using multiple classes on the same element.

Make sure it says solid also.

.t-border { border-top: 2px solid lightgrey; }

Try a refresh to make it work, sometimes just clicking the preview does not work for me. I have to manually refresh.

Vlad Legkowski
Vlad Legkowski
9,882 Points

I know this is an old tread, but check if you removed {} after the .secondary-content, thats what happened with me

Robert Doyle
Robert Doyle
4,737 Points

That's what I did wrong also. Thanks.

change "primary-content t-border" to just "t-border"

Piyush Patel
Piyush Patel
17,253 Points

I don't think that is the issue here unless he overrides the declaration with the help of primary-content.

Thanks! That did it.