[personal profile] sally_maria posting in [community profile] style_system
Last year, I posted about getting a comma-separated list for my tags, and somebody helped me to sort it out.

Somehow, though, changes in the site or my layout mean that it no longer works quite right, and I was hoping somebody might help me to fix it.

The problem is with the commas after each item - there is always a space first, so the commas look rather odd.

At the moment I'm using

.module-tags_cloud .module-list-item { font-size: 12pt !important; }
.module-tags_cloud .module-list-item:after{content: ", "; }
.module-tags_cloud .module-list-item:last-child:after{content: " "; }

Thank you for any help you can give me.

Date: 2011-03-20 07:30 pm (UTC)
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)
From: [personal profile] foxfirefey
What browser are you using? I don't see an extra space, myself.

Date: 2011-03-20 07:54 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
I'm seeing it in Firefox, I think it's coming from the invisible bit with the tag number in it.

Try this:

Date: 2011-03-26 10:45 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Erase what you've got and put this in instead:

.module-tags_cloud .module-list-item { font-size: 12pt !important; }
.module-tags_cloud .module-list-item:after{content: ","!important; margin-left:-.2em!important;}

.module-tags_cloud .module-list-item:last-child:after { content: ""!important;}


Not only fixes the problem but that last line removes the last comma, too (I went to town on this one - hope it works).
Edited (don't need "display:inline", forgot to remove it b4 posting) Date: 2011-03-26 10:49 pm (UTC)

Re: Try this:

Date: 2011-03-27 01:52 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
If you have "visibility-private" tags, my code might not work perfectly (but it should apply to all tags within the tags list, so I'm not sure why it would fail on locked tags). Just checked, and I'm not going to screen-cap it because I'm fairly sure you'll believe me, but I'm not seeing the wrapping comma (Firefox 3.16 - haven't upgraded to 4 yet - maybe that's it?)
Edited (garbled that up) Date: 2011-03-27 02:02 am (UTC)

Profile

Dreamwidth style system discussion

September 2025

S M T W T F S
 123456
78 910111213
14151617181920
21222324252627
282930    

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 22nd, 2025 01:41 am
Powered by Dreamwidth Studios