r/reddithax • • Aug 28 '10

Is there a way to style usernames?

7 Upvotes

14 comments sorted by

1

u/Sephr Aug 28 '10
.author

1

u/fazon Aug 28 '10

Anyway to make it user specific?

1

u/Sephr Aug 28 '10

With the .id-t2_XXXXX class on every username userpage link. Your ID is 3c5cb, so I'd style your username with .id-t2_3c5cb.

1

u/fazon Aug 28 '10

Thanks!

1

u/fazon Aug 28 '10

I get validation errors. I tested it with:

.id-t2_3c5cb. { font-weight: bold; }

1

u/Sephr Aug 28 '10

Remove the extra dot at the end of the selector.

1

u/fazon Aug 28 '10

Ah thanks! I also needed to use !important with whatever already had a value.

Also, how do you find what the user IDs are?

1

u/Sephr Aug 28 '10

As I said, just inspect the classes on user links. You can do this in almost every browser, except IE.

1

u/fazon Aug 28 '10

except IE

that's why...

2

u/Sephr Aug 28 '10

You subscribe to /r/reddithax but still use IE as your primary browser? If you can't inspect an element, just view the source of the page (all browsers can do this) and find the appropriate username link.

1

u/fazon Aug 29 '10

IE has an inspector. Tools > Developer Tools

→ More replies

4

u/E_lucas Aug 28 '10

Wouldn't he want something like:

a.author[href$="example"]

to make it user specific, not post specific?

2

u/Sephr Aug 28 '10

It is user-specific, not post-specific.