Forum Moderators: coopster
Regards Ian
in the head:
<<<
<link rel=stylesheet href="idx1.css" type="text/css">
>>> where idx1 is my sheet's name
then do not include your div within your nav bar and try
<<<
<div class="intro15">
<?php
include("includes/what_is.inc.php");
?>
</div>
>>>
as is the whole include is driven by the div class
hope it helped
Henry
Edit:
sorry: should have told you that "what_is.inc.php"
will be your nav_bar.inc.php
Yes I am using an external css, the include file is in html and has the extension of nav.php only.
I dont really understand this bit
<<<
<div class="intro15">
<?php include("includes/what_is.inc.php");
?>
</div>
Not sure where the div tag comes in, do i put it on the html page where the php include command is, not sure how this fits in the stylesheet.
Regards Ian
I called out my navigation like so:
<!-- Begin Left Navigation -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<?php require ("nav.php");?>
etc.
and I did my <div class="nav"> in the include file (because it's a mixture of graphics and links), so the div is for the links.
but, in other websites I've set up, just text is in the include file, and the text (and link behavior) is styled by an external style sheet.
Maybe you can post a little but of your style sheet and your code surrounding the include?
<<<
<div class="intro15">
<?php
include("includes/what_is.inc.php");
?>
</div>
Not sure where the div tag comes in, do i put it on the html page where the php include command is, not sure how this fits in the stylesheet.
>>>
Yes this snippet of code goes in the html.
You are surrounding the php script with the <div>
that will provide CSS action to the whole nav bar
again in the example my div is named "intro15"
and yours is whatever name you came with.
what do you mean by "not sure how this fits in the stylesheet"
could you post a sample of the html that includes the
PHP nav_bar include.
<?PHP include("includes/menu.php")?>
Then in my external stylesheet i have this,
A {font-weight: normal; background: none; color: #0000FF; text-decoration: none;}
A:hover {font-weight: normal; background: none; color: #FFFFFF; text-decoration: none;}
And this is all I have done, so the menu appears and works fine but ut would be nice to get the rollover effect, Thanks for all reply so far,
Regards Ian
and that your div starts above the include
and end after the include
you might have a CSS problem
please post in the CSS forum
good luck
Henry
As of yet i had no div at all in the code. I am hoping thats the missing link i need to make my include page start reading the stylesheet, I have just been so busy wont have time to play with that site untill the weekend, but will let you know if it works.
I will add a div class of say <div class="nav"> in my file then in my style sheet put div.nav followed by my stlye rules and then the php include knows to look at the stylesheet.
I think this is what your all telling me, so this is kind of a php/css borderline case.
Will let you know how i get on soon. Thanks for your support all the grateful.