winlowdrosilen 0 Posted February 3, 2013 Report 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. Quote Link to post Share on other sites
Edward 108 Posted February 3, 2013 Report 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> Quote Link to post Share on other sites
winlowdrosilen 0 Posted February 3, 2013 Author Report 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!! Quote Link to post Share on other sites
Edward 108 Posted February 3, 2013 Report Share Posted February 3, 2013 Yeah keeping it in a css folder helps you organize things well, thanks Quote Link to post Share on other sites
Antonio Conte 426 Posted February 3, 2013 Report 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:\ ) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.