PDA

View Full Version : underline...


Winterworks
02-12-2009, 10:09 PM
Okay, for some reason, my code isn't working...

<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?

UKBusinessLive
02-12-2009, 10:31 PM
Mike

Have a read up here http://www.echoecho.com/csslinks.htm

Its a great site for tips ;)

Winterworks
02-12-2009, 10:57 PM
I have.. By what it says, I could be doing it right.. It should work..

TigerC10
02-13-2009, 10:55 PM
Okay, for some reason, my code isn't working...

<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.