Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic CSS question

Status
Not open for further replies.

Bogiemon

Programmer
Jun 25, 2004
21
GB
I've got a css file called blue.css code below:

<style type="text/css">
<!--
body { background-color: #003A4D;
background-image: url(pictures/background450x500.jpg);
color: #A8BAff;
font-family: haettenschweiler, tahoma, courier; }
-->
</style>


When I link to this from a HTML page it works fine in IE but not in Firefox. Basic HTML:

<html>
<head>
<title>test</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="blue.css" />
</head>
<body>
blah blah blah
</body>
</html>

Can anyone show me where I'm going wrong. I'm sure it's blatently obvious.

Cheers
Bogiemon
 
The CSS file needs to be in this format:

Code:
body {position: absolute;
	margin-left: 5px;
	margin-top: 5px;
}

No need for this:

Code:
<style type="text/css">
<!--
&
-->

when using external style sheets

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top