PDA

View Full Version : using include files in shtml


chriskq
03-16-2006, 11: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">
John
Constable</span>
(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

chriskq
03-16-2006, 11: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.

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

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

ramandeep
03-17-2006, 08: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.