inherit
149534
0
Mar 24, 2024 21:57:30 GMT -8
Smudges
298
November 2009
reverse
|
Post by Smudges on Jun 26, 2013 16:12:21 GMT -8
question to the staff or anyone about labels
can you add a background to the labelse tag via css and can it be different background to different boards,threads etc, i am hoping you can as i have a css code that i would like to use with labels but it is different per label
thanks in advance
example
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Jun 27, 2013 9:18:17 GMT -8
If I understand what you're asking, this should be totally feasible. The HTML for a typical tag (in this case, the 'resolved' tag we use over on the support board) looks like this:
<span class="ui-label label-2 label-board-44" style="border-color: #0000ff; color: #0000ff;">Resolved</span> It should be fairly trivial to add JS or CSS to your forum to add a background color: (obviously replacing LABEL_ID and BOARD_ID with the relevant label and board ids)
With CSS:
.label-LABEL_ID.label-board-BOARD_ID { background-color: #FF0000; } With JS:
$('.label-LABEL_ID.label-board-BOARD_ID').css('background-color', '#FF0000');
|
|
inherit
149534
0
Mar 24, 2024 21:57:30 GMT -8
Smudges
298
November 2009
reverse
|
Post by Smudges on Jun 27, 2013 19:09:09 GMT -8
Tim Camara thanks alot that is exactly what i was meaning took a little fiddling around but now i have it thanks again. Kudos example
|
|