Check out this code snippet:
<fieldset class="shareMe"><br />
<input type="checkbox" id="share_me" name="share_me" value="1" {if $default_share_pref}checked="checked"{/if} onclick="if (this.checked) { var perms = 'publish_stream'; fb_login_cached(function(response){ if (!response.perms.match(new RegExp(perms))) $('share_me').checked = false; }, perms); }"/>
<label for="share_me">Post this question to my friends on
<span class="">
<a class="fb_button fb_button_small">
<span class="fb_button_text">Facebook</span>
</a>
</span>.
</label>
</fieldset>
I am looking to modify the text within the <label for .. >
field using CSS.
I know I could achieve this by duplicating the snippet and using CSS to switch between them. However, I am seeking a solution with minimal changes in the code. Perhaps utilizing a CSS trick to alter the text inside the <label for...>
without affecting the rest of the content within the tag.