winlowdrosilen Posted February 3, 2013 Share Posted February 3, 2013 I'm reproducing the template.html (Script 8.1). But it seems that the css file (1.css) doesn't work. I cannot see a formatted page like figure C. I put the 1.css file in the same directory with my template.html. Is this right? Should I put 1.css somewhere else? I'm using XAMPP on Windows 7. Link to comment Share on other sites More sharing options...
Edward Posted February 3, 2013 Share Posted February 3, 2013 It is okay to have the css in the same folder it could also be in a separate folder. Make sure you are including the css file in your template.html script in the head section. For example <style type="text/css" media="screen">@import "css/main.css";</style> Link to comment Share on other sites More sharing options...
winlowdrosilen Posted February 3, 2013 Author Share Posted February 3, 2013 It is okay to have the css in the same folder it could also be in a separate folder. Make sure you are including the css file in your template.html script in the head section. For example <style type="text/css" media="screen">@import "css/main.css";</style> Thanks very much Edward, I think I got it! Since in the script it is "... href="css/1.css" type=..." I should put it into a folder named css!! Link to comment Share on other sites More sharing options...
Edward Posted February 3, 2013 Share Posted February 3, 2013 Yeah keeping it in a css folder helps you organize things well, thanks Link to comment Share on other sites More sharing options...
Antonio Conte Posted February 3, 2013 Share Posted February 3, 2013 The CSS file path will be relative to the script if you don't use a absolute path. You can check out the base path HTML structure or consider defining an absolute path. The absolute path will be the full path on your operating system. (Probably starting at your harddrive c:\ ) Link to comment Share on other sites More sharing options...
Recommended Posts