Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 6:41 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  How to use a CSS file with HTML?
PostPosted: November 10th, 2009, 8:29 pm 

Posts: 28
Hello, I've just created a CSS file which I called css.css. But when I use it on my site it doesn't affect my site at all. What can I do now?


Top
 Profile  
 
  Re: How to use a CSS file with HTML?
PostPosted: November 11th, 2009, 12:20 am 

Posts: 65
Do you have some code or a link for us to look at?


Top
 Profile  
 
  Re: How to use a CSS file with HTML?
PostPosted: November 13th, 2009, 6:46 am 

Posts: 28
Sorry, I was working on something else, this is my current script
<style type="css.css"></style>

the file is called "css" just like its extension, i tried with different names and still is not working :(


Top
 Profile  
 
  Re: How to use a CSS file with HTML?
PostPosted: November 13th, 2009, 7:38 am 

Posts: 96
When you are using an external style sheet you need the <link> tag:
<link rel="stylesheet" href="css.css" type="text/css" />
http://www.scriptingok.com/tutorial/CSS-style-sheets-5


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron