css not found for view.php in chapter 2
Lawrence E. ...
9 posts
|
Hi - In chapter 2, at about time of 3:18, when I create view.php by copying your template-article.html, it displays the static page when I click on “READ STORY”, but there is no formatting Like shown in the movie), so it doesn’t apparently find my css files for that page. My front page is styled fine, so it finds my css directory for that (which is in my website root directory). What should I try? Thanks. Larry Lewis |
Kevin Rodgers
7 posts
|
Use an absolute path for the CSS file instead of a relative path. Most likely, the relative path does not work because of how EE structures the URLs. An absolute path would be like http://example.com/css/site.css. |
Lawrence E. ...
9 posts
|
Thanks – that was the problem – although I just had to put a ”/” in front of the css in the <link> tags for the css. I didn’t need the whole website url. |
3 posts, 2 voices
