Forum Moderators: not2easy

Message Too Old, No Replies

How to link an HTML file to a CSS in Homestead

How to link an HTML file to a CSS in Homestead

         

hardtofindusername

12:08 am on Aug 23, 2008 (gmt 0)

10+ Year Member



I am running a site on Homestead (don't laugh I actually like Homestead). And I am trying to post a Suckerfish DHTML nav menu on the site.

I imported all the files into the Homestead root directory but homested uses html "snippets". So I am not sure how to get the actual html coding of the nav menu file to link with the css and js files I uploaded? I tried using the "paste" html feature and the nav menu shows up but none of the links work (the css is clearly not linking to the pasted html code). I got it work once but had to clean up the code and now the drop downs wont work.

Anyone familiar with Homestead's file servers? I need a work around and Homestead does not support it.

Thanks,

J

hardtofindusername

12:25 am on Aug 23, 2008 (gmt 0)

10+ Year Member



Okay I think I have it. I have the url of the nav menu html. All I think I need to do is create an html link to that html file. Can someone tell me what the code would look like in the html snippet?

I thought it was this:

<a href="http://www.widgets.com/nav_menu.html">

but the nav menu does not show up on the page. What am I missing here?

Marshall

5:15 am on Aug 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Assuming I understand your problem correctly,

To link a script, in the <head> you need:

<script type="text/javascript" src="path_to_js_file.js"> </script>

To link a style sheet, also in the <head>, place:

<link rel="stylesheet" type="text/css" href="path_to_style_sheet.css" />

Marshall