CSS within a Form query

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have the following entry in a form.

<div style="padding: 5px;">1 refill
<input value=" Order " name="B1" type="submit">

How can I add/apply a hover style so that the word "Order" will change from
green to red on hover?

Thaks for any help
I am reasonably familiar with HTML and CSS.
Brian Tozer

Re: CSS within a Form query

KiwiBrian wrote:
Quoted text here. Click to load it

<style type="text/css">
.dynamic { color: green; }
.dynamic:hover { color: red; }

<div style="padding: 5px;">1 refill
<input class="dynamic" value=" Order " name="B1" type="submit">

Of course only works in modern web browsers, for IE<=6.x you will need a
JavaScript solution

Take care,

Site Timeline