Ok so tonight I thought I would give this a go and I ran into a major problem.
I can’t seem to get the file paths to my CSS stylesheets or to the JS correct. I
think I’ve got the right file paths, but for some reason, it doesn’t want to work.
Here’s a photo of my file structure:
As you can see, I added the CSS, JS and Image folders in the Assets directory.
And here’s the header in my site:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head profile="
http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv=“X-UA-Compatible” content=“IE=7” />
<title>DC Enterprises</title>
<link rel="shortcut icon" href="/favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" media="all" href="
assets/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="
assets/css/style-green.css" />
<script type=’text/javascript’ src="
http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js?ver=1.4.4"></script>
<script type="text/javascript" src="
assets/js/cufon.yui.js"></script>
<script type="text/javascript" src="
assets/js/jquery.Fancybox.js"></script>
<script type="text/javascript" src="
assets/js/jquery.Portfolio.js"></script>
<script type="text/javascript" src="
assets/js/jquery.Accordion.js"></script>
<script type="text/javascript" src="
assets/js/jquery.Scripts.js"></script>
<script type="text/javascript">
Cufon.replace(’.Header h3’, {
textShadow: ’1px 1px 1px #357b0e’
});
Cufon.replace(’.Header span’, {
textShadow: ’1px 1px 1px #9ef36f’
});
</script>
</head>
I put several of my stylesheets into one main sheet, which is the "style.css" file, which then references the rest of the style sheets in the assets/css folder. This is how the file paths for this is set up:
Importing the CSS:
/* Global Reset */
@import "assets/css/reset.css";
/* Typography */
@import "assets/css/typography.css";
/* Layout */
@import "assets/css/layout.css";
/* Accordion Styles */
@import "assets/css/accordion.css";
/* Portfolio (Slider) Styles */
@import "assets/css/portfolio.css";
/* Fancybox */
@import "assets/css/fancybox.css";
/* Color Demo - You can remove this */
@import "assets/css/colors.css";
I feel like I have the file paths set up correctly, I’m just wondering why it isn’t working.
Thanks again for all your help,
K