Click to See Complete Forum and Search --> : Underline a letter to identify the accesskey
vfreese
02-22-2003, 11:01 AM
I have developed an Order Form. I have 4 credit card names listed with radio buttons. I need to know what to do to underline the first letter in each choice to identify the accesskey that I have assigned to each..Example: Master Card..I want the "M" underlined to identify the accesskey..How do I accomplish this? I am using notepad to develop this Order Form.
Something like this...
<u>M</u>aster Card
Charles
02-22-2003, 12:03 PM
Except that the U element was depricated a long time ago. Use instead the SPAN element or, if it applies, the first-letter pseudo selector.
vfreese
02-22-2003, 07:57 PM
Thanks Pyro...that did the trick.... I am all set now..:D
Rick Bull
02-23-2003, 12:10 PM
A clever way to do something similiar I picked up from someone on the Opera forums was with CSS:
*[accesskey]:after {
content: '(' attr(accesskey) ')';
font-size: smaller;
}
Which will put a the accesskey encased in brackets after anything that has an accesskey. It doesn't work in IE though :( Let's hope version 7 fixes all these short0commings.