+ Reply to Thread
Results 1 to 3 of 3

Thread: Html Help Textarea!?

  1. #1
    dan_swiger's Avatar
    dan_swiger is offline New Member dan_swiger is on a distinguished road
    Join Date
    Oct 2009
    Posts
    1


    Default Html Help Textarea!?

    I have one question about html textarea code.

    I know the textarea code can be this :

    <textarea rows="2" cols="20">
    </textarea>

    but i was wondering

    whats the code. to make a textarea be a certain color and a certain size. I want a textarea that has a scroolbar.and with a certain backgorund color and certain size.

    all i found in google is a way to make the textarea a certain background color OR make it a certain size. but i want both in one..
    IS there a way!!?



    This makes it with a background color
    <textarea style="color: red; background-color: lightyellow">
    </textarea>

    HOW DO I ADD THE SIZE CODE ONTO THIS CODE ABOVE

  2. #2
    olinda12's Avatar
    olinda12 is offline New Member olinda12 is on a distinguished road
    Join Date
    Oct 2009
    Posts
    1


    Default hai

    Hi, i agree with the others answers. you use a different way to apply the style 2:

    add the style to the header of your html document:

    <head>

    <style type="text/css">
    <!--
    .txtarea-style {
    background-color: #A6B0F7;
    height: 100px;
    width: 300px;
    border: thin solid #000066;
    }
    -->
    </style>


    </head>

    then attach the style to your text area

    <textarea name="textfield" cols="25" rows="5" class="txtarea-style"></textarea>

  3. #3
    chinchi86's Avatar
    chinchi86 is offline New Member chinchi86 is on a distinguished road
    Join Date
    Oct 2009
    Posts
    3


    Default

    add the style attribute to the tag along with the rows and cols attributes. see this

    <textarea rows="2" cols="20" style="color: red; background-color: lightyellow">
    </textarea>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Styled <textarea>?
    By arya054 in forum Website Coding
    Replies: 0
    Last Post: 07-21-2009, 3:17 PM
  2. Adding background to textarea
    By moonight in forum Website Coding
    Replies: 0
    Last Post: 10-10-2008, 5:58 AM
  3. HTML help
    By harry in forum Website Coding
    Replies: 5
    Last Post: 07-31-2006, 10:58 PM
  4. Html Help. :(
    By musicsmysoul in forum Website Coding
    Replies: 11
    Last Post: 07-30-2006, 6:19 PM
  5. HTML help
    By Stivey in forum Website Coding
    Replies: 8
    Last Post: 03-27-2006, 2:30 AM

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