views:

56

answers:

3

Hi I am modifiying a cs-cart theme which uses smarty template engine. I am able to move the shoping cart links to above the top menu and it shows Ok with IE8 firefox etc. Hovewer IE7 make an empty space. How could I make IE7 happy. I added the necessary style-sheets and tpl files. Main css files are style.css and stle.base.css.


IE8 no space alt text

IE7 with space alt text

+2  A: 

IE7 doesn't render CSS well. Create a special CSS file for IE7 and include it in your HTML as follows:

<!--[if lte IE 7]>
<link href="ie7.css" rel="stylesheet" type="text/css">
<![endif]-->

In ie7.css, modify the margins, padding, etc. until the two versions appear identical.

mcandre
thanks but my question is how to make IE7 looks like IE8.
Gok Demir
By doing just what I described.
mcandre
+2  A: 

The answer above is helpful, but in additional:

Add this in the <head></head> tags:

<!--[if lte IE 7]>
<link href="ie7.css" rel="stylesheet" type="text/css">
<![endif]-->

Inside the ie7.css you add the element to it, e.g.

.cart-thingy {
    margin: -10px 0 0 0;
}

And so on.

This will certainly help as well:

Conditional comments

YouBook
It just added 10px above "car is empty" . Space is still there
Gok Demir
sorry below "cart is empty"
Gok Demir
I've edited the code, try the CSS code again, it should 'pull' up the thingy that will stop the space from showing - you can increase the -10px to a higher number to move it up more.
YouBook
A: 

How can i see the site alive? Is it possible?

Aaron