dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: field

  1. #1
    Join Date
    Mar 2003
    Location
    Somewhere on Planet Earth, I hope.
    Posts
    987

    field

    hi people. Is it in CSS where you can specify colours/text colour in fields? My site contains loads of forms with lots of fields, and thought it would be nice to 'match' the background and textcolour of the fields to the theme. My CSS file atm looks like:


    a:link, a:active, a:visited {
    color: #949191;
    font-size : 10;
    Font-Family: Tahoma;
    text-decoration: none}

    a:hover {
    color: #BEBDBD;
    font-size : 10;
    Font-Family: Tahoma;
    text-decoration: none}

    BODY{
    scrollbar-face-color:#98ADBF;
    scrollbar-arrow-color:#000000;
    scrollbar-track-color:#6C88A1;
    scrollbar-shadow-color:#000000;
    scrollbar-highlight-color:#6C88A1;
    scrollbar-3dlight-color:#000000;
    scrollbar-darkshadow-Color:#000000}
    }

    FONT
    {
    color: #000000;
    Font-Family: Tahoma}



    Thanks!

  2. #2
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Yes, it's possible. For all form fields, try:

    <style>
    input {color:#000000;background-color:#FFFFFF;}
    </style>

  3. #3
    Join Date
    Mar 2003
    Location
    Somewhere on Planet Earth, I hope.
    Posts
    987
    is it not possible to put it into my .css file? I pasted it before...If so what would I put? thanks.

  4. #4
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Just use this in the .css file:

    input {color:#000000;background-color:#FFFFFF;}

  5. #5
    Join Date
    Jan 2003
    Location
    Peg City
    Posts
    638
    Just to help you understand better. Declaring what Jona has posted in your .css file will essentially define new style "defaults" for the input tags. So, you don't even need to have:
    <input ... class="inputclass"> or something like that.

    Havik

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles