Conditional Comments for IE8/9
Permalink
Ok, so I have been everywhere on the web trying to find out how to add CC to my code. I have added the CC but it is not being read by IE8. Here is the link to the website:http://www.diamond-b-ranch.com
This website fails in IE8 and IE9, so I wanted to do the CC to fix the top logo placement.
So, I have read that php doesn't support CC, I have read that it does, so, I figured that since I used C5 to build it, I would pick ya'alls brain.
Argh! Help
Thanks! Karen
This website fails in IE8 and IE9, so I wanted to do the CC to fix the top logo placement.
So, I have read that php doesn't support CC, I have read that it does, so, I figured that since I used C5 to build it, I would pick ya'alls brain.
Argh! Help
Thanks! Karen
Hi! Thank you for your response. I did add the cc to the head section of my php. Is that what you mean by adding it to the theme directly? Would I have to create a separate HTML file simply for cc's? Here is my code for my theme:
<link href="/themes/home/../home/main.css" rel="stylesheet" type="text/css">
<!--[if IE 8]>
<style type="text/css">
.logo {
margin-top: 2%;
background-color:green;
}
</style>
<![endif]-->
Everything that I do doesn't work. Ideas?
K-
<link href="/themes/home/../home/main.css" rel="stylesheet" type="text/css">
<!--[if IE 8]>
<style type="text/css">
.logo {
margin-top: 2%;
background-color:green;
}
</style>
<![endif]-->
Everything that I do doesn't work. Ideas?
K-
Your page structure is a little messed up.
You have some things in the head like
<link href="/themes/home/../home/main.css" rel="stylesheet" type="text/css">
but most of the concrete stuff is in the body like
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
all thatconcrete stuff (the meta tags, javascript and CSS) in the body needs to be in the head.
You have some things in the head like
<link href="/themes/home/../home/main.css" rel="stylesheet" type="text/css">
but most of the concrete stuff is in the body like
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
all thatconcrete stuff (the meta tags, javascript and CSS) in the body needs to be in the head.
You need to add those comments in your theme directly.
something like :