0

How do i save a css file

i have a problem saving a css file and linking it to the html

7th Nov 2016, 10:58 AM
Brian Mwangi
Brian Mwangi - avatar
3 Réponses
+ 2
just save your css file in your web directory/folder and use tag <link rel="stylesheet" type="text/css" href="foldername/filename.css" > just it
7th Nov 2016, 11:04 AM
Mohamad Basori
Mohamad Basori - avatar
+ 1
1. Save the file with this format filename.css *take note the ".css" extension 2. Then paste this file in the header of your html file, <link rel="stylesheet" type="text/css" href="filename.css"> For example: <html> <head> <link rel="stylesheet" type="text/css" href="filename.css"> </head> <body> html contents here... </body> </html> NOTE: If your css file is not in the same folder with your html file, you have to specify the css path. Example: <link rel="stylesheet" type="text/css" href="path_to_css/filename.css">
7th Nov 2016, 12:45 PM
Lyndon John Vergara
Lyndon John Vergara - avatar
0
Copy the code in notepad… Save the notepad file with a name having .css extension and click on save .
8th Nov 2016, 7:47 AM
Rachana Bumb
Rachana Bumb - avatar