Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do you change a Text area Color.

    You know this part

    Code:
    <input type="text" name="textfield">
    How do i change the background color of it and can you put a pixel border?

    thanks.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <style>
    input[type="text"]{border:1px;background-color:red}
    </style>

    or:

    <input type="text" name="textfield" style="border:1px;background-color:red">

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can you change the height of the text area?

  • #5
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.w3schools.com/css/css_reference.asp

    but if you are going to change the height on an input
    instead you should use a <textarea></textarea>


  •  

    Posting Permissions

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