Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Graphic Design (http://siteownersforums.com/forumdisplay.php?f=23)
-   -   How can i add my css file to html web page? (http://siteownersforums.com/showthread.php?t=138087)

arronmattwills 01-15-2014 09:33 PM

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:


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.

justclickweb 02-01-2014 02:41 AM

This is the most common method of attaching CSS rules to an HTML document. With this method all of your style rules are contained in a single text file that is saved with the .CSS extension. This file is saved on your server and you link to it directly from each HTML file. The link is just a simple line of HTML that you put in the section of your HTML document, it looks like this:



All times are GMT -7. The time now is 06:18 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.