SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS form Text is White on white???

    So I bought this nice template and started to work on it the other day and ran into this issue on the form that I am using...

    Since the text on the page is white. The text when entered into the form is white also which does not allow the user to see it. How can I can just the form text color?

    Thanks!

    http://filebox.vt.edu/users/kkhan/Pa...s/Contact.html

    http://filebox.vt.edu/users/kkhan/Pa...ss/default.css

  2. #2
    SitePoint Addict
    Join Date
    Apr 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try adding this at the bottom of your css file:

    form.cmxform input { color: black; }

  3. #3
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by adwatson View Post
    Try adding this at the bottom of your css file:

    form.cmxform input { color: black; }
    That fixed the first fieldset and the text at the bottom on the submit button however the comments box still has white text when typing in it and the drop downs have white text as well. How did you know to use input? Where do you find this stuff?

    Thanks

  4. #4
    SitePoint Wizard bronze trophy Tailslide's Avatar
    Join Date
    Feb 2006
    Location
    Bedford, UK
    Posts
    1,687
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    Code:
    form.cmxform input, form.cmxform textarea, form.cmxform select { color: black; }
    That should cover all eventualities.
    Little Blue Plane Web Design
    Blood, Sweat & Rust - A Land Rover restoration project

  5. #5
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    East of Ottawa, ON
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code CSS:
    form.cmxform input, form.cmxform select, form.cmxform textarea { color: #000; }

  6. #6
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect!!! Huge thanks!

    Is there some reference material you all use or do you know this from experience?

  7. #7
    SitePoint Wizard bronze trophy Tailslide's Avatar
    Join Date
    Feb 2006
    Location
    Bedford, UK
    Posts
    1,687
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Both really.

    Personally I've been building websites for quite a few years - not as many as some on here but then they had to use stone and chisels (no names mentioned - you know who you are!) but we all learn somewhere.

    There are countless excellent tutorials on the web - try http://www.htmldog.com and http://www.cssbasics.com for a start.
    Little Blue Plane Web Design
    Blood, Sweat & Rust - A Land Rover restoration project


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
  •