www.webdeveloper.com
Results 1 to 5 of 5

Thread: Change content in HTML only with CSS?

Hybrid View

  1. #1
    Join Date
    May 2012
    Posts
    5

    Change content in HTML only with CSS?

    Hi,
    i want to change the content "User" in <input value="User" /> only with CSS,no tuch HTML.Is this possible?
    Thanks!

  2. #2
    Join Date
    Mar 2011
    Posts
    1,138
    No. CSS can't do that. You'll need to use JavaScript to change the value.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    May 2012
    Posts
    14
    I think there are some possibilities using CSS selectors..

    Please go through the following article..

    http://coding.smashingmagazine.com/2...css-selectors/

    The author is talking about the different CSS selectors

  4. #4
    Join Date
    Nov 2007
    Posts
    409
    The only attributes that CSS Selectors can work with are attributes that "regular" CSS plays with, not "input attributes". That is, it can affect "style" stuff (colors, backgrounds, width, padding, etc.), not "input values".

  5. #5
    Join Date
    May 2012
    Posts
    5
    Thank you,seems not possible...

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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