1 reply [Last post]
samf
samf's picture
Offline
Enthusiast
Los Angeles, CA
Last seen: 7 years 40 weeks ago
Los Angeles, CA
Timezone: GMT-5
Joined: 2003-09-29
Posts: 106
Points: 34

If this is not too much of a problem.

Is there any way to show an Underline under a certain character but only one character in a button field, ie.

<input type="button" ... etc.>

I want to get this effect:
File Edit View

like you see on a navigation menu, when you hit the alt key. I was just thinking a button would be the easies way to mirror the standard windows menu, and I can dynamically change the borders on mouseover.

Any input would be appreciated, but this isn't a terrible thing if it can't be done (would be coool though if you could do this or insert an image for example)

Sam

Life is complex -- don't make it complicated. If you need help with PHP visit PHP Builder

janim
Offline
Regular
phinland
Last seen: 15 years 44 weeks ago
phinland
Joined: 2004-04-26
Posts: 11
Points: 0

formatting inside buttons

first-letter is a css pseudo element which allows you to style the first letter of text in a container.

-- css --
div.navigation {
color: #000;
}

div.navigation:first-letter {
text-decoration: underline;
}

-- html --
<div class="navigation">Aber</div>
<div class="navigation">Deen</div>

The example above would look like this:
Aber
Deen

First letter underlining doesn't seem to work with input buttons so you might have to use different elements as your "UI buttons".