Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding

Website Coding Website coding help from HTML to php and all the others like ColdFusion, C++, etc etc. Here you can also get database help.

Reply
 
LinkBack Thread Tools

  #1  
Old 10-06-2009, 6:54 AM
dan_swiger's Avatar
New Member
 
Join Date: Oct 2009
Posts: 1
dan_swiger is on a distinguished road
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
__________________
blue cross application
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote

  #2  
Old 10-07-2009, 10:10 AM
olinda12's Avatar
New Member
 
Join Date: Oct 2009
Posts: 1
olinda12 is on a distinguished road
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>
__________________
bean bags
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote

  #3  
Old 11-01-2009, 1:34 PM
chinchi86's Avatar
New Member
 
Join Date: Oct 2009
Posts: 3
chinchi86 is on a distinguished road
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>
__________________
Ayurveda Cure programs
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Reply

Tags
agree, answers, apply, area, attributes, background, class, code, color, document, field, google, header, html, question, rows, solid, style, text, textarea, tribute, type, want, yellow, your


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +1. The time now is 9:54 AM.


vBulletin style developed by Transverse Styles

Powered by: vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40