...

View Full Version : textarea css



zuzupus
07-11-2003, 01:58 PM
is it possible to get css for text area something like select
SELECT{
BACKGROUND-COLOR : #eeeeee;
BORDER-BOTTOM-COLOR : #3c3c3c;
BORDER-BOTTOM-WIDTH : 1px;
BORDER-LEFT-COLOR : #3c3c3c;
BORDER-LEFT-WIDTH : 1px;
BORDER-RIGHT-COLOR : #3c3c3c;
BORDER-RIGHT-WIDTH : 1px;
BORDER-TOP-COLOR : #3c3c3c;
BORDER-TOP-WIDTH : 1px;
COLOR : #3c3c3c;
FONT-FAMILY : Arial, Helvetica, sans-serif;
FONT-SIZE : 11px;
}
i tried to use textarea in css but its not working,dont no why

thanks in advance

meow
07-11-2003, 03:14 PM
Should work in current browsers. Maybe you have a typo?

ivy
07-11-2003, 05:50 PM
Hi zuzupus

Like this:



<style type="text/css">

TEXTAREA{
BACKGROUND-COLOR : #eeeeee;
BORDER-BOTTOM-COLOR : #3c3c3c;
BORDER-BOTTOM-WIDTH : 1px;
BORDER-LEFT-COLOR : #3c3c3c;
BORDER-LEFT-WIDTH : 1px;
BORDER-RIGHT-COLOR : #3c3c3c;
BORDER-RIGHT-WIDTH : 1px;
BORDER-TOP-COLOR : #3c3c3c;
BORDER-TOP-WIDTH : 1px;
COLOR : #3c3c3c;
FONT-FAMILY : Arial, Helvetica, sans-serif;
FONT-SIZE : 11px;
}
</STYLE>


All you need to do is change the selector (normally the html element/tag).

In this case, I have changed "SELECT" to "TEXTAREA"

If you are using both, then your css styles will look like this:



<style type="text/css">

TEXTAREA
{
BACKGROUND-COLOR : #eeeeee;
BORDER-BOTTOM-COLOR : #3c3c3c;
BORDER-BOTTOM-WIDTH : 1px;
BORDER-LEFT-COLOR : #3c3c3c;
BORDER-LEFT-WIDTH : 1px;
BORDER-RIGHT-COLOR : #3c3c3c;
BORDER-RIGHT-WIDTH : 1px;
BORDER-TOP-COLOR : #3c3c3c;
BORDER-TOP-WIDTH : 1px;
COLOR : #3c3c3c;
FONT-FAMILY : Arial, Helvetica, sans-serif;
FONT-SIZE : 11px;
}

SELECT
{
BACKGROUND-COLOR : #eeeeee;
BORDER-BOTTOM-COLOR : #3c3c3c;
BORDER-BOTTOM-WIDTH : 1px;
BORDER-LEFT-COLOR : #3c3c3c;
BORDER-LEFT-WIDTH : 1px;
BORDER-RIGHT-COLOR : #3c3c3c;
BORDER-RIGHT-WIDTH : 1px;
BORDER-TOP-COLOR : #3c3c3c;
BORDER-TOP-WIDTH : 1px;
COLOR : #3c3c3c;
FONT-FAMILY : Arial, Helvetica, sans-serif;
FONT-SIZE : 11px;
}

</STYLE>


And of course you can just keep adding further selectors.

You could also group the selectors if they have the same properties and values (but maybe you could do that at a later stage)...

Read the tutorial I referenced in the last post... It will save you so much time!

zuzupus
07-14-2003, 09:38 AM
thanks alot its really appreciable

cg9com
07-14-2003, 09:40 AM
Possibly it's because you cannot edit the borders on the select element in IE?

MotherNatrsSon
07-14-2003, 01:02 PM
Read the tutorial I referenced in the last post... It will save you so much time!



Which tutorial?

MNS

zuzupus
07-14-2003, 01:09 PM
exactly which tutorial i thinking ur posting ur comments in wrong post textarea css instead of scrollbar color as i already solved the problem for textarea,but hwy scrollbar of browser is not changing for IE

hope u dont mind it :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum