Jump to content


CSS isn't working


5 replies to this topic

#1 KS93

    Young Padawan

  • Members
  • Pip
  • 65 posts

Posted 03 July 2005 - 09:52 PM

I'm trying very hard to learn CSS but it is being... bad :P

I am follwing a basic tutorial I found. And the first code it this

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252">
<title>My First CSS WebSite</title>
</head>
<body>
CSS Website
</body>
</html>

And I save it as a html file and then open it in firefox. And it shows the code! Not the text but the code!!

Any help would be realy nice :D

#2 pr0jekt

    Young Padawan

  • Members
  • Pip
  • 171 posts
  • Location:Australia
  • Interests:Anything Web.. mostly coding

Posted 03 July 2005 - 11:19 PM

only thing i can think of is that ur not saving it as a real html file make sure u save it as .html / .htm nothing else for starters :P

hope that helps

btw i cant see any css in that script or anything referring to css

#3 KS93

    Young Padawan

  • Members
  • Pip
  • 65 posts

Posted 04 July 2005 - 09:58 AM

I know but It was just the start of a tutorial. Thanks for your help. I'll try it out :D

#4 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 04 July 2005 - 10:07 AM

Quote

content="text/html; charset=windows-1252">

Try removing that and see if it works...

#5 KS93

    Young Padawan

  • Members
  • Pip
  • 65 posts

Posted 04 July 2005 - 10:39 AM

Hmm. That didn't work but when I tryed it a few more times it worked! So I'm clear on that and can continue my learning of CSS B)

Thanks for your help guys :P

#6 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 04 July 2005 - 01:11 PM

So you know, i presume you used notepad to save the file. The one thing you MUST remember when saving a file is, no mater what extension you use, you must make sure that the "Save as type" box is "All Files"





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users