Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Form (Button) elements - Rollovers?

Status
Not open for further replies.

rockyroad

Programmer
Feb 22, 2003
191
US
Hello,

I know it relatively easy to assign rollover affects to <a> elements using css classes that will define the link, visited, active and hover states of an element.

Is there a way to accomplish a similar effect with the &quot;Button&quot; element?

for example, I'd like to build in a style that will style this button:

<input type=&quot;button&quot; value=&quot;Add Document&quot; class=&quot;button&quot;>

currently, I have a style class that styles these elements,

.optionButton {
font-size: 8pt;
color: #000000;
font-weight: normal;
background: lavender;
cursor: pointer;
width: 100px;
align: center;
border-color: 006699;
border-width: 1px;
}

but I would like to update this to somehow add in the ability to change background on rollover for example.

Thanks!

RR [yinyang]
 
why not try images???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top