SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: css in <forms>

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css in <forms>

    hola muchachos

    i would like to know if its possible to use css to control text styles within html <form> elements.

    for example, i would like to set the font attributes for text appearing within text input fields and textarea fields, and maybe buttons too.

    if this is possible i'd appreciate any examples or links to tutorials etc

    thanks
    give me all your lentils

  2. #2
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How ironic I just happen to be working on a form right now. If you know Css then changing the form elements is easy.
    Code:
    input,select, textarea {
    	color: black;
    	font-size: 10px;				background-color: silver;
    	border-color: white
    }
    Thats just the basics of what you can do. For the select boxes you can control how the scroll bar looks.

    http://www.devshed.com/Client_Side/Style_Sheets

    Just learn which css elements apply to the form elements in question
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats cool thanks.

    i never get my email notifications

    i know some basic css, i just havent seen the code for forms

    thanks a lot
    give me all your lentils


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
  •