View Single Post
Old 01-15-2014, 09:33 PM   #1
arronmattwills
Registered User
 
Join Date: Dec 2013
Posts: 493
Thumbs up How can i add my css file to html web page?

The important points are rel, media, href. If it will go wrong then your code goes wrong.

Quote:
<link rel=''stylesheet" href="css/mystyle.css" media="screen">
In the above code rel means relationship is equal to style sheet.
And the important thing is we should not give wrong path for css file. Here i have created a css folder then i have saved my 'mystyle.css' file then i am pointing that file into this html. If your style sheet will be in your main file only then no need to give any path.
arronmattwills is offline   Reply With Quote