View Full Version : using include files in shtml

03-16-2006, 10:07 PM
Ello again. trying to figure out if it is possible to call a class from my include file (that refers to that class in my main css)

for example i have
<a class="xmenu2" href="#nogo"><b class="xsnazzy"><b class="xtop"><b class="xb1">[/b]<b class="xb2">[/b]<b class="xb3">[/b]<b class="xb4">[/b][/b]<span class="xboxcontent">
(thats a button in a menu)

the menu works if all the code is in my index.file, but that makes the page so sloppy.

do i have to point in my include file to where the css is or anything?
bit lost ... any help would be great

03-16-2006, 10:13 PM
sorry i forgot to say i cant get it to work as being an include file, but i can when the menu code is in my html page.

03-16-2006, 10:15 PM
Your include file should point to the CSS file which is bieng used by the code in the include file.

03-17-2006, 01:56 AM
yep thats what i thought. where and how do i point it to the css pls ram?

03-17-2006, 07:41 AM
you have to just attach the stylesheet to the webpage where you are using your include statement

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

I have attached an example for including navigation, that will give you a an idea.