• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

css

coolguy23

Guest
how do i call css style from a file, and exactly what do i put in the css file?
and also what is the code to have the text area background changed (where i am typing now)
 
<link rel="stylesheet" href="file.css" type="text/css">

text area changed?:

body { background-color: color; color: other color; font-family: Verdana }
 
no not the cell, the input form options things, where you can type info and submit it
Code:
<input type="text" name="T1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
 
oh!!

use a style=""

just put stuff like background-color, font-family, color, etc. use : to assign it (i.e. color: #FFFFFF) and ; to seperate them.
 
<form>
<input type="text" class="funky">
<textarea class="funky"></textarea>
</form>

----------

.funky { color: #FFFFFF; background: #000000 none }
 
You add that to your .css file. Either that or you can add it in the head tag inside of a style tag.
 
In HEAD if you use it in this shape. Like so:

<html>
<head>
<title></title>
<style type="text/css">
<!--

.funky { color: #FFFFFF; background: #000000 none }

-->
</style>
</head>

<body>

<<ADD>> Shit! This is the third time today I post at the same time as someone else. :D
 
Last edited:
ok, let me rephrase this,
i have the tag to read the css file as stated in the second post of this thread in my head, and i have the css code in a css file
but it is not showing on my computer, will it work on a server?
 
ok, i have
Code:
<link rel="stylesheet" href="file.css" type="text/css">
in my head

and this in my css file
Code:
.textarea 
	{  
	FONT-SIZE: 11px;
	COLOR: #000000;
	FONT-FAMILY: Tahoma, sans-serif;
	BACKGROUND-COLOR: #33CCFF"
	}

BODY 
	{
	scrollbar-face-color: 33CCFF;
	scrollbar-highlight-color: 33CCFF;
	scrollbar-3dlight-color: FFFFFF;
	scrollbar-darkshadow-color: FFFFFF;
	scrollbar-shadow-color: 33CCFF;
	scrollbar-arrow-color: 000000;
	scrollbar-track-color: CCFFFF;

	color: #333333; 
	font-size: 11px; 
	font-family: Tahoma, sans-serif;

	}


A	{
	color: #33CCFF;
	text-decoration: none;
	}

A:hover	{
	color: #FFFFFF;
	text-decoration: underline;
	}

A:active
	{
	color: #FFFFFF;
	text-decoration: none;
	}


A:visited
	{
	color: #FFFFFF;
	}

B 	{
	font-size: 11px; 
	font-family: Tahoma, sans-serif; 
	font-weight: bold;
	}


TD 	{
	color: #FFFFFF;
	font-size: 11px;
	font-family: Tahoma, sans-serif;
	}

H1 	{
	color: #000000;
	font-size: 13px;
	font-family: Tahoma, sans-serif;
	text-align: justify;
	font-weight: bold;
	}

H2 	{
	color: #666666;
	font-size: 9px;
	font-family: Tahoma, sans-serif;
	text-align: justify;
	font-weight: bold;
	}

HR	{
	color: #FFFFFF;
	}
 
Doesn't anything work?:confused:

What I see right off is that you have a single quoute after the hex values in a couple of paces like : #33CCFF". Away with that.
Other hex values lack the "#" in front.
 
Just a thought... if you used the tag <link rel="stylesheet" href="file.css" type="text/css"> then you will have to either rename your .css file to "file.css" (without quotes of course) or change href="file.css" to href="nameofyourfile.css" . Check if you have done that, though I'm sure you have...
 
yes, i have done that, it's just that if i need to update the css, i won't have to go through each page, but if it isn't gonna work, then i guess i'm screwed
 
Back
Top