CSS is not working!!! Please help?

Home » Forums » Stylesheet Maker » CSS is not working!!! Please help?


Registered User
2 posts

Hey.

I'm new to all this, so I can't figure out what I did wrong.

But I have written :
<link rel="stylesheet" href="Untitled2" type="text/css">
in my html-file, both the html file and the css file are located in the same folder.

The css-file won't show in Explorer browser, so there's probably something wrong with it. This is how my style sheet looks like right now:

<!-- Style Sheet created with the CoffeeCup StyleSheet Maker -->
<!-- http://www.coffeecup.com -->


<style type="text/css">



#header
{
color: #34DDDD;
width: 900px;
float: left;
padding: 10px;
Border: 9px solid #085dad;
height: 100px;
margin: 10px;
background-color: white;
}


#body
{
background-color: #789939
}

#sidebar
{
float: left;
width: 200px;
padding: 20px 0 0 50px;
color: #787878;
}

#h1
{font-style: arial;
font-size: 2;
font-color: black:
}
-->
</style>


...The html file has the tags <div id=""></div> to locate the css-tags.

Can anybody point out to me why it isn't working?

Wishing you all a nice week :-)

*Louise


Ambassador
1,058 posts

The style sheet file name should end with ".css" and your link should be

<link rel="stylesheet" href="Untitled2.css" type="text/css">


HTML markup should not appear anywhere in the style sheet, so remove the following from the top of the style sheet:

<!-- Style Sheet created with the CoffeeCup StyleSheet Maker -->
<!-- http://www.coffeecup.com -->

<style type="text/css">
<!--


And remove this from the end:


-->
</style>

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.