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

Problem with Firefox not displaying Head Correctly

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-24-2006, 07:23 AM
 
gscmotorsports gscmotorsports is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 5
 

Default Problem with Firefox not displaying Head Correctly

Works in internet explorer correctly, but when opening up the site in firefox it does not display the correct path to the image in the header

Code:
http://www.stikiller.com/images%5Clogo-right.jpg

It seems like it wont render the / correctly?
here is my head.tpl code

Code:
<table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td bgcolor="#000000"> <a href="home.php"><img src="images\logo.jpg" width="500" border="0" height="115"> </a> </td> <td bgcolor="#000000" rowspan="2"> <img src="images\logo-right.jpg" width="447" height="150" border="0" alt="" align="right"></td> </tr> <tr> <td bgcolor="#000000" align="left" class="HeadText"> <h1 style="margin-top: 0; margin-bottom: 0"><b> <font face="Verdana" color="#FFFFFF" size="2">Mitsubishi Lancer Evolution Performance Parts 1-866-548-4GSC</font></b></h1> </TD> </tr> <tr> </tr> </table>
__________________
version x-cart-4-1.1.0 gold
Reply With Quote
  #2  
Old 08-24-2006, 07:26 AM
 
gscmotorsports gscmotorsports is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 5
 

Default Re: Problem with Firefox not displaying Head Correctly

Kinda fixed it by putting the full path to the images in the link like this

Code:
<img src="http://www.stikiller.com/images/logo.jpg">

kinda around about way of doing it no?
__________________
version x-cart-4-1.1.0 gold
Reply With Quote
  #3  
Old 08-24-2006, 10:03 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Problem with Firefox not displaying Head Correctly

You should always call your images using Smarty:

<img src="{$ImagesDir}/imagename.jpg">

The $imagesdir is the skin1/images folder by default.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 08-24-2006, 01:31 PM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default Re: Problem with Firefox not displaying Head Correctly

I just had a problem with Firefox in <td align="middle">

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <body> <table width="100%"border=1><tr><td style="WIDTH: 300px" align="middle">Test</td></tr></table> </body> </html>
does not make the "Test" in the middle. But

Code:
<html> <body> <table width="100%"border=1><tr><td style="WIDTH: 300px" align="middle">Test</td></tr></table> </body> </html>
works. It make "Test" in the middle.

X-cart uses <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

??
__________________
version 4.1.1
Reply With Quote
  #5  
Old 08-24-2006, 01:36 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Problem with Firefox not displaying Head Correctly

align="middle" is depreciated. Try using CSS, just add it to your width tag:

<td style="width: 300px; text-align: center;">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:36 AM.

   

 
X-Cart forums © 2001-2020