Date: 2016-02-07 10:27 am (UTC)
marahmarie: (M In M Forever) (0)
From: [personal profile] marahmarie
In a stylesheet, is it possible to define some custom icons for user links and have others be the system default?

Yes. All your user links should show icons, based on what I can see in your stylesheet; to use system default icons on some links instead, you would remove the URLs in your stylesheet from the links in question.

So...

img[src*='user.png'] {
width: 0; height: 0;
padding: 0 0 16px 18px;
background: url('http://andbirds.org/paste/fugue/leaf.png') no-repeat;
vertical-align: middle !important;
}


...is your Dreamwidth user icon, which should be displaying an image replacement from http://andbirds.org.

If you don't want their icon to show up, you would take out background: url('http://andbirds.org/paste/fugue/leaf.png') no-repeat; and the icon should revert back to Dreamwidth's (you'd also take out the line saying height: 0; width: 0 so DW's icon can display normally again; you might not need the line with the padding, either.

(Hopefully that's what you're after; sorry if I've misunderstood!)

ETA2: ETA1 you can disregard; it was me forgetting that setting height and width to 0, then adding something like 16px x 18px padding is an old LiveJournal hack to add replacement images. What it does is 1) hide LJ's images and 2) inserts your own images in the extra space created by the padding, so your image gets displayed instead of LJ's. Works on DW, too! So if the replacement images are not showing up then I'm really not sure why.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

Dreamwidth style system discussion

June 2025

S M T W T F S
12345 67
891011121314
15161718192021
22232425262728
2930     

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 05:08 pm
Powered by Dreamwidth Studios