SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot cools_sonu's Avatar
    Join Date
    Jan 2010
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    html5 placeholder

    Hello all..

    I want to give different color and style to input placeholder other than default.

    but I'm yet to find a way.

    Please help me.

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,576
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    If you mean an actual <input> then no you can't . That element (along with other form elements) are nearly impossible to style due to them being styled by the system.

    You have to live with it
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  3. #3
    SitePoint Zealot cools_sonu's Avatar
    Join Date
    Jan 2010
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ohh it means better to do with js.

    Thanks for the reply or else I would have still continued to search for the solution.

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    You can style input fields with CSS.

    For example:

    Code CSS:
    form button, form input[type="submit"], form input[type="reset"], form input[type="text"], form input[type="password"], form textarea, form select { border: 1px solid #c5d0f2; }
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,576
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    You can technically do a few things with them, although the amount of changes the OP wanted would make it impossibe to do

    Javascript would be best if you absolutely feel like you need it
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  6. #6
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simon Pieters


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
  •