Jump to content
Larry Ullman's Book Forums

Recommended Posts

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

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

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

 Share

×
×
  • Create New...