Re: [WSG] form input [Virus checkedAU]
rereading that it may not be clear, if you want to style the button in the label you could do something like this... label.submitbuttons input { rule : value; } wonder if just .submitbuttons input would work? James Ellis wrote: Not really, there is no class on the submit, it's a class on the surrounding block.. a label in this example. Better to use a class as their may be more than one submit/reset on the page. .submitbuttons { background-color : red; } .resetbuttons { background-color : blue; } Cheers James Taco Fleur wrote: Yes, but that would the same as assigning a class to the submit button. Anyway, thanks for the input - answer: it can't be done yet;-)) * The discussion list for http://webstandardsgroup.org/ * * The discussion list for http://webstandardsgroup.org/ *
Re: [WSG] form input [Virus checkedAU]
Not really, there is no class on the submit, it's a class on the surrounding block.. a label in this example. Better to use a class as their may be more than one submit/reset on the page. .submitbuttons { background-color : red; } .resetbuttons { background-color : blue; } Cheers James Taco Fleur wrote: Yes, but that would the same as assigning a class to the submit button. Anyway, thanks for the input - answer: it can't be done yet;-)) * The discussion list for http://webstandardsgroup.org/ *
RE: [WSG] form input [Virus checkedAU]
Taco, There's more than one way to reference a cat. I think what Mark means is that if there was a around the submit button you could use that as a more specific selector. IMHO, probably just easier to use a class (as previously mentioned...) Steve Dixon. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** * The discussion list for http://webstandardsgroup.org/ *
RE: [WSG] form input [Virus checkedAU]
Steve, I realize what your saying, and thats exactly what I meant by "I realize I could do it the following way, but thats not what I am after." Which was refering to using a class. Cheers. -Original Message- From: Stephen Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, 10 December 2003 10:51 AM To: '[EMAIL PROTECTED]' Subject: RE: [WSG] form input [Virus checkedAU] Taco, There's more than one way to reference a cat. I think what Mark means is that if there was a around the submit button you could use that as a more specific selector. IMHO, probably just easier to use a class (as previously mentioned...) Steve Dixon. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** * The discussion list for http://webstandardsgroup.org/ * * The discussion list for http://webstandardsgroup.org/ *
RE: [WSG] form input [Virus checkedAU]
Yes, but that would the same as assigning a class to the submit button. Anyway, thanks for the input - answer: it can't be done yet;-)) -Original Message- From: James Ellis [mailto:[EMAIL PROTECTED] Sent: Wednesday, 10 December 2003 10:36 AM To: [EMAIL PROTECTED] Subject: Re: [WSG] form input [Virus checkedAU] ..using a descendant selector... #mydiv input { blah : blah; } #anotherdiv input { blah : blah; } That said, I've had some issues with getting markup to validate with divs in forms. Cheers James * The discussion list for http://webstandardsgroup.org/ * * The discussion list for http://webstandardsgroup.org/ *
Re: [WSG] form input [Virus checkedAU]
..using a descendant selector... #mydiv input { blah : blah; } #anotherdiv input { blah : blah; } That said, I've had some issues with getting markup to validate with divs in forms. Cheers James * The discussion list for http://webstandardsgroup.org/ *
RE: [WSG] form input [Virus checkedAU]
Hi Mark, The answer as ever is yes and no. Yes in mozilla et al and no in IE. As always ofcourse. 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? I don't see however how it being in another div would make any difference? Can you explain how it would make a difference if it was in another DIV? Thanks * The discussion list for http://webstandardsgroup.org/ *
RE: [WSG] form input [Virus checkedAU]
Or apply a class to it. Cheers Mark -- Mark Stanton Technical Director Gruden Pty Ltd Tel: 9956 6388 Mob: 0410 458 201 Fax: 9956 8433 http://www.gruden.com * The discussion list for http://webstandardsgroup.org/ *
Re: [WSG] form input [Virus checkedAU]
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; 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; } 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. 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; } 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/ *