SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot DigitalCreation's Avatar
    Join Date
    Jun 2002
    Location
    'down under'
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using css in forms

    When using css, .. is there a css command line that will accect the size and font of the form variables itself?, .. For example if I were to include a css template to control the fonts and sizes can I have a class in css to control th size of font and type in the drop down list of my forms, .. text area etc?

    Thanks for any answers that may come about

    Digital Creationz

  2. #2
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes you can style forms using CSS classes:

    http://www.macromedia.com/desdev/art...css_forms.html

    Code:
    FORM {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #336699;
    etc
    etc
    }
    And define classes for different types of form using a different class selector:

    Code:
    FORM.newstyle {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;etcetc
    }
    Then you would just use class="newstyle" in your <form> tag.

    Hope that helps

    Glen

  3. #3
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You've probably found out that, despite your best efforts, you cannot apply all the styles to a <select> tag in the way that you can to other inputs. Mostly it's the border attributes.

    So, don't bust a gut if it doesn't behave on <select>s ... it's never gonna ...
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback


Bookmarks

Posting Permissions

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