0

I have been trying to save the CSS code and save the file as .css in the same folder and i link it on my html but when i do that the code doesn't get inserted to the document. Is there any specific way to save external .css? because right now i am saving all the code in that html that is css and saving that as .css and link it but it is not working.

www.insanecricket.com/sleek

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by npatel0317
1

External css should not contain style tags (<style type = "text/css"></style>) at the beginning and end like they do when putting them inline. If the styles aren't showing up, they probably aren't in the same place that you are pointing the link href to. Try typing the absolute address of your css file into the browser and view it to make sure it's there. Then copy and paste the same url into the href. i.e.<link href="http://www.insanecricket.com/sleek/styles.css" rel="stylesheet" type="text/css" />

Votes + Comments
Good spoting
0

External css should not contain style tags (<style type = "text/css"></style>) at the beginning and end like they do when putting them inline. If the styles aren't showing up, they probably aren't in the same place that you are pointing the link href to. Try typing the absolute address of your css file into the browser and view it to make sure it's there. Then copy and paste the same url into the href. i.e.<link href="http://www.insanecricket.com/sleek/styles.css" rel="stylesheet" type="text/css" />

thanks a lot i was putting the link rel inside the style tags thats why it wasnt working thanks a lot.

Thanks

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.