Jump to content

CSS traversing multiple php include() statements?


ComicSMURF

Recommended Posts

Well. I've got a small issue with IE8 and a web development project that I'm working on. I'm working on trying to create the look and feel of a link via CSS that isn't using a href.

 

So I have the following CSS style for my <a> tags

         
/* basic format */
a{
font-weight: bold;
text-decoration: none;
color: #666666;
}
/*removes border around image links*/
a img{
border:none;
text-decoration:underline;
}
/*Action for hover over*/
a:hover{
Cursor:pointer;
text-decoration:underline;
color: #333333;
}

 

Now I think the problem is in how I'm doing the body of my php file with the include statements seen as the following:

 

<div id="supermain">
<div id="top"><?php include('top_page.php'); ?></div>
<div id="left" ><?php include('links.php'); ?></div>
<div id="main">Main body that will contain content</div>
<div id="bottom"><img src="img/R25 Banner top.JPG" width="841" /></div>
</div>

 

Ok, now the question is, how can I get my set styles to traverse all the php included files and not just the first one in IE8, are there any hacks to get around it?

 

Website - www.andrew-byrd.com/r25

It will do that automatically. If you are having troubles it lies somewhere else.

 

What you have to realize is that CSS has absolutely nothing to do with PHP. CSS is executed in the browser, on (X)HTML. If you are using a PHP script to generate your (X)HTML, that script will be run on the server. The script runs, generates the output, then sends it to the browser at which point the CSS will act on that output.

 

So includes will have absolutely nothing to do with your CSS problems. If you are having CSS problems, the source of your problem is somewhere else.

Ahhhhhh... yes, you are right. After doing some research on the compatability of CSS and Internet Explorer from Microsoft and found out that they require a meta declaration.

 

           

                        <meta http-equiv="X-UA-Compatible" content="IE=9" />            

 

 

Thanks so much for pointing me in the right direction as to what the real problem was Haku.

~Smurf

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.