Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Navigation Issue with IE 7

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-31-2006, 10:51 PM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default 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
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
  #2  
Old 01-01-2007, 02:09 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Navigation Issue with IE 7

remove <script> </script>
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 01-03-2007, 02:49 AM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default 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]-->
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
  #4  
Old 01-03-2007, 02:57 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Navigation Issue with IE 7

try
Code:
{literal} <!--[if IE 7]> <style type="text/css"> .hnav {margin-top:100px;} </style> <![endif]--> {/literal}
__________________
xcartmods.co.uk
Reply With Quote
  #5  
Old 01-03-2007, 03:01 AM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default Re: Navigation Issue with IE 7

That did the trick. Thankyou
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
  #6  
Old 01-03-2007, 03:10 AM
  scoobie's Avatar 
scoobie scoobie is offline
 

Advanced Member
  
Join Date: Dec 2006
Location: Sydney
Posts: 84
 

Default 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
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:25 PM.

   

 
X-Cart forums © 2001-2020