Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Scotland
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS for forms - submit button

    i have this class that I wish to apply to all form elements on my site:

    Code:
    .FORM
    {
        FONT-FAMILY: Lucida Console, Sans Serif, Arial, Verdana, Helvetica;
        FONT-SIZE: 8pt;
        COLOR: #000000;
        TEXT-DECORATION: none;
    }
    It works fine with all elements APART from the submit button.

    The scary thing is that it works fine with SOME submit buttons but not with others.

    Please tell me i've done something daft
    My body's a temple... and like those ancient Greek ones it's a ruin
    sweenster.co.uk

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Not one to disappoint, youv'e done something daft

    I have my form elements applicable from an external css. Looking at the script though I see that I have the style for the submit button on the page. Its not a problem for me coz it is a fly page and there is ony the one for many clients.

    Here is the code in my page.

    <input style="background: #336633; color: #D2F3DA" type="submit" value="Send" name="B1"> <input style="background: #336633; color: #D2F3DA" type="reset" value="Start Over" name="B2">

    it is along time since I did my form so I cant recall if I had the problem you did or if I did someting daft too.

    Bazz


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •