X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Navigation Issue with IE 7 (https://forum.x-cart.com/showthread.php?t=27710)

scoobie 12-31-2006 10:51 PM

Navigation Issue with IE 7
 
I incorporated my own navigation under my logo because I had some trouble customising the speed bar tabs. It works fine in FireFox but IE 7 moves the navigation above the logo. I get an error which says unrecognisable tag with the margin-top line. I put this code in the head tag section in the home.tpl file from the customer folder.

<script>
<!--[if IE 7]>
<style type="text/css">
.hnav {margin-top:100px;}
</style>
<![endif]-->
</script>


Can someone tell me what syntax issue I have or have I just got it wrong. The site is www.floriart.com.au/shop

Thanks,
Kylie

inebriate 01-01-2007 02:09 PM

Re: Navigation Issue with IE 7
 
remove <script> </script>

scoobie 01-03-2007 02:49 AM

Re: Navigation Issue with IE 7
 
I removed the <script> and </script> but it made no difference. I still get an error relating to the margin-top tag?

I can't see what is wrong with this piece of code?

<!--[if IE 7]>
<style type="text/css">
.hnav {margin-top:100px;}
</style>
<![endif]-->

PhilJ 01-03-2007 02:57 AM

Re: Navigation Issue with IE 7
 
try
Code:

{literal}
<!--[if IE 7]>
<style type="text/css">
.hnav {margin-top:100px;}
</style>
<![endif]-->
{/literal}


scoobie 01-03-2007 03:01 AM

Re: Navigation Issue with IE 7
 
That did the trick. Thankyou :D

scoobie 01-03-2007 03:10 AM

Re: Navigation Issue with IE 7
 
I thought if I changed the margin-top to padding-top the logo wouldn't also go down the page. However using the padding-top, the navigation appears at the top of the screen.

Any ideas how I can fix this?

Regards,
Kylie


All times are GMT -8. The time now is 07:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.