ComicSMURF Posted October 6, 2010 Share Posted October 6, 2010 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 Quote Link to comment Share on other sites More sharing options...
haku Posted October 6, 2010 Share Posted October 6, 2010 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. Quote Link to comment Share on other sites More sharing options...
ComicSMURF Posted October 7, 2010 Author Share Posted October 7, 2010 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 Quote Link to comment Share on other sites More sharing options...
haku Posted October 8, 2010 Share Posted October 8, 2010 No worries... but you shouldn't need that meta tag. I've never used it in any site. Unless you are maybe using IE9, I've not touched it yet (and won't until it is fully released). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.