[RESOLVED] IE 6 re-align without javascript?
Hi,
I am working one this website:
http://www.vbforums.com/showthread.php?t=524971
However, having solve the problem in that thread the bottom div doesn't align with the main div in IE6.
Is there an If statement or something I could use change the footer alignment if the site is displayed in IE6? If possible can it be done without using JS?
Thanks,
Nightwalker
Re: IE 6 re-align without javascript?
So far I have tried:
Code:
<style type = text/css>
<!--[if IE6]>
.bottomnav {margin-left: 256px;}
<![end if]-->
</style>
However, the if statement doesn't want to work.
Re: IE 6 re-align without javascript?
Conditional comment needs to go outside the style element. Also, your HTML is malformed — missing quotes.
HTML Code:
<!--[if lte IE 6]>
<style type="text/css">
.bottomnav { margin-left: 256px; }
</style>
<![endif]-->
Re: IE 6 re-align without javascript?
Quote:
Originally Posted by penagate
Conditional comment needs to go outside the style element. Also, your HTML is malformed — missing quotes.
Ah ok, thanks for your help! :)
Edit:
Damn, that code didn't work!
Re: IE 6 re-align without javascript?
I used this code to solve the problem:
Code:
<!--Cascading Style Sheets for different Browsers-->
<link rel="stylesheet" type="text/css" href="./css/corvette_style.css" />
<!--[if gte IE 6]>
<link rel="stylesheet" type="text/css" href="./css/corvette_style1.css" />
<![endif]-->
<!--[if gte IE 7]>
<link rel="stylesheet" type="text/css" href="./css/corvette_style.css" />
<![endif]-->