[Solved] How to target certain text to make bold using css
[ad_1] Assuming the “Badge Name: ” phrase is constant, one approach is using CSS :before pseudo element to generate the content as follows: EXAMPLE HERE .tag:before { content: “Badge Name: “; font-weight: bold; } Hence you could remove that phrase from your script: wrapper.append(‘<div class=”tag” >’+ item.badgename + ‘</div>’+ ‘<br>’); Another option is wrapping that … Read more