This email is to be read subject to the disclaimer below.

Hi Taco,

The answer as ever is yes and no.  Yes in mozilla et al and no in IE.

The "attribute" selector is used as follows:

input[type="submit"]{  your css attributes here....}

The only way to do it reliable is the way you are proposing - unless you
can refer to it another way - i.e. does it sit in another div that is
referencable?

Mark Lynch
Development Manager - Business Innovation Online
Ernst & Young - Australia
http://www.eyware.com/
http://www.eyonline.com/
Direct: +612 9248 4038
Fax: +612 9248 4073
Mobile: +61 421 050 695


                                                                                       
                                                
                       "Taco Fleur"                                                    
                                                
                       <[EMAIL PROTECTED]         To:      <[EMAIL PROTECTED]>         
                                           
                       com.au>                 cc:                                     
                                                
                                               Subject: [WSG] form input  [Virus 
checkedAU]                                            
                       10/12/2003                                                      
                                                
                       10:56 AM                                                        
                                                
                       Please respond                                                  
                                                
                       to wsg                                                          
                                                
                                                                                       
                                                
                                                                                       
                                                



Is there some way that you can only target input elements with type SUBMIT?


Example;


<style>
form input
{
        background-color: #FFCFCE;
        border: 1px solid black;
        font-weight: bold;
        color: white;
        width: 160px;
        background-image: url(../image/buttonSubmit_background03.gif);
        cursor: hand;
        background-repeat: repeat-x;
}
</style>
</head>


<body>


<form>
  <input type="submit" value="test"><br/>
  <input type="text" name="blah">
</form>


This would apply the style over all INPUT elements, but I was wondering if
it could be just applied to the input elements that have type SUBMIT or
BUTTON?


I realize I could do it the following way, but thats not what I am after.


<style>
form input .submit
{
        background-color: #FFCFCE;
        border: 1px solid black;
        font-weight: bold;
        color: white;
        width: 160px;
        background-image: url(../image/buttonSubmit_background03.gif);
        cursor: hand;
        background-repeat: repeat-x;
}
</style>
</head>


<body>


<form>
  <input type="submit" value="test" class="submit"><br/>
  <input type="text" name="blah">
</form>
Taco Fleur
Tell me and I will forget
Show me and I will remember
Teach me and I will learn







--------------------
NOTICE - This communication contains information which is confidential and
the copyright of Ernst & Young or a third party.

If you are not the intended recipient of this communication please delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose  or distribute this communication without the
authority of Ernst & Young.

Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
Ernst & Young.

Except as required at law, Ernst & Young does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor
that the communication is free of errors, virus, interception or
interference.

Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)
--------------------



*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to