Quote:
Originally Posted by Winterworks
Okay, for some reason, my code isn't working...
Code:
<input onclick="trasion.TXER('underline', null, 'q')" name="underline" disabled="disabled" class="editor_buttons" type="button" accesskey="u" style="text-decoration: underline;" value="U" />
But on my forum, it only displays "U", it should display " U"...
Why isn't this working?
|
Because this is a BUTTON, it is not standard HTML/CSS to expect the value text to have the style applied to it (your style should be applied to the button, which means your button should be underlined, not your text inside the button).
I think it will work as intended in Internet Explorer, but in Firefox you'll have to turn on "quirks mode".
Use a regular text link and set it inside a DIV or a Table with a style to mimic what a button looks like.