r/csshelp • • Nov 10 '13

Resolved Where might I find a tutorial on creating sidebar labels?

I'm positive I'm not using the right terminology here and, as that makes obvious, I'm a pretty much a novice with CSS. Mine is a private sub and the members wouldn't abide my making the space public (apologies), but an example of what I'm talking about is at /r/billiards or /r/babybumps. Those doodads in the sidebar that looks like ribbons, sort of. Thank you for any help!

6 Upvotes

6 comments sorted by

1

u/gavin19 Nov 10 '13

1

u/Blillowfil Nov 10 '13

thanks! I have another question for you.

Do I use all of that code for every single one of those I want?

1

u/gavin19 Nov 10 '13

To clarify, the first block here is the CSS. That goes into the stylesheet (once).

The latter block, ie

#Hello there

is what needs to go into your sidebar. It must be an h1 to trigger the CSS.

#I'm an h1
##I'm an h2
...
######I'm an h6

h1-h6 are the header types in HTML. In HTML they are used like

<h1>Hello there</h1>

but since reddit uses markdown then we must use #s to denote a header.

See here for all the markdown formatting.

1

u/Blillowfil Nov 10 '13

This was remarkably helpful. Thank you very much.

1

u/ThatMortalGuy Nov 11 '13

Hey, so I gave this a try and it is working for the first sidebar label but it wont work for the other ones when I type
' ##Label 2'
'###Label 3 (etc)'

What am I missing here?

1

u/gavin19 Nov 11 '13

The CSS is specific to h1 headers. I was simply showing the range of header types available. If you want to trigger the CSS then you need to keep using h1s

#Label1
#Label2

etc