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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts

    global form styles

    Is there a way to style all elements of forms (such as all buttons, text fields, etc.) globaly? (Without declaring a class in the tag <input type=text class=whatever>)

    Kinda the same way that links are declared for a page...

    anyone?

    ~Quack

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    select{
    font-family : serif;
    }
    input{
    font-family : serif;
    }

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Colorado
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    taking out the "." in your CSS coding will make anything in your pages do what you want them to. Look at the following examples:

    TD {font-weight: bold} <-- this will make any text inside a TD tag bold.
    BODY {bgcolor: #000000} <-- this will cause the background of every page to be black.

    other tags and instances can work too, just try them out and match them to your specifications.
    -Sk8er9547


  •  

    Posting Permissions

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