Actually I have tried several different paths including:
/styles/main.css
http://localhost/demo/styles/main.css
I have even embed the css directly onto the page. The index file looks fine
when the /about-our-company is not included but as soon as I add the suffix to
the end the css won't render.
Here is my code with styles embedded in the head:
index.cfm
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<style type="text/css">
body {
font-family:arial;
font-size:12px;
}
#HNav, #HNav ul {
/* horizontal alignment (left, right) */
float: left;
/* removes bullets from list */
list-style: none;
/* font weight of menu item text */
font-weight: bold;
/* padding from edge (moves left or right) */
padding: 0;
/* border around links */
border: solid #000000;
/* width of border around menu item */
border-width: 0;
/* margin space around menu */
margin: 0;
}
#HNav a {
display: block;
/* color of link text */
color: #FFFFFF;
/* remove border from links */
text-decoration: none;
/* padding of links from edge */
padding: 0.25em 1em;
}
#HNav a.daddy {
/* background of item with class daddy (item with subitems - not currently
used) */
background: url(rightarrow2.gif) center right no-repeat;
}
#HNav li {
/* float: right; = right aligns menu and reverses order of menu items */
float: left;
/* width of top level menu items, if used widths are all equal
width: 10em;
*/
}
#HNav li ul {
position: absolute;
left: -999em;
height: auto;
/* width of rollover color */
width: 12em;
/* width of subitem menu box */
w\idth: 12em;
/* font weight of subitem menus */
font-weight: normal;
/* border width of subitem menu box*/
border-width: 1px;
/* background color of sub menu items */
background: #666666;
/* distance of subitem menus below top menu */
margin: 0px;
}
#HNav li li {
/* adjusts right padding for items without child elements */
padding-right: 1em;
/* adjusts the width of items without child elements */
width: 11em
}
#HNav li ul a {
/* adjusts the width of the sub menu margins for links - (*SET*) */
width: 11em;
/* adjusts the width of the sub menu margins for links - (*SET*) */
w\idth: 10em;
}
#HNav li ul ul {
/* first number is the vertical placement of the second level subitem
menus */
/* last number is the horizontal offset of the second on level of subitem
menus*/
/* the last number should be set to at least equal that of the width */
/* property of the "li ul" class */
margin: -22px 0 0 12em;
}
#HNav li:hover, #HNav li.sfhover {
/* color of background on rollover */
background: #999999;
}
/* These classes show and hide the sub menus -- DO NOT ALTER -- */
#HNav li:hover ul ul, #HNav li:hover ul ul ul, #HNav li:hover ul ul ul ul,
#HNav li.sfhover ul ul, #HNav li.sfhover ul ul ul, #HNav li.sfhover ul ul ul ul
{
left: -999em;
}
#HNav li:hover ul, #HNav li li:hover ul, #HNav li li li:hover ul, #HNav li
li li li:hover ul, #HNav li.sfhover ul, #HNav li li.sfhover ul, #HNav li li
li.sfhover ul, #HNav li li li li.sfhover ul {
left: auto;
}
</style>
<script type="text/javascript" src="drop_down.js"></script>
</head>
<body marginheight="5" topmargin="5" bgcolor="#666666">
<table width="600" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td height="26" colspan="2" background="sitefiles/images/link.png">
<div align="right">
</div>
</td>
</tr>
<tr>
<td colspan="2"><img src="sitefiles/images/logo.jpg" alt="" width="760"
height="100" /></td>
</tr>
<tr>
<td height="18" colspan="2" background="sitefiles/images/menu.png">
<ul id='HNav'><li><a
href='http://localhost/demo/page.cfm/about-our-company'>About Us</a><ul
id='HNav'><li><a
href='http://localhost/demo/page.cfm/mission-statement'>Mission
Statement</a></li><li><a
href='http://localhost/demo/page.cfm/vision'>Vision</a></li><li><a
href='http://localhost/demo/page.cfm/leadership'>Leadership</a><ul
id='HNav'><li><a href='http://localhost/demo/page.cfm/ceo'>CEO</a></li><li><a
href='http://localhost/demo/page.cfm/cfo'>CFO</a></li><li><a
href='http://localhost/demo/page.cfm/coo'>COO</a></li></ul></li></ul></li><li><a
href='http://localhost/demo/page.cfm/contact'>Contact</a></li></ul>
</td>
</tr>
<tr>
<td width="184" valign="top" bordercolor="#050C14" bgcolor="#FFFFFF">
</td>
<td width="575" height="400" valign="top" bgcolor="#FFFFFF">
</td>
</tr>
<tr>
<td height="26" colspan="2" background="sitefiles/images/link.png">
<div align="center">
</div>
</td>
</tr>
</table>
</body>
</html>