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)
-   -   Problem with Firefox not displaying Head Correctly (https://forum.x-cart.com/showthread.php?t=24339)

gscmotorsports 08-24-2006 07:23 AM

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>


gscmotorsports 08-24-2006 07:26 AM

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?

balinor 08-24-2006 10:03 AM

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.

jdedba 08-24-2006 01:31 PM

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">

??

balinor 08-24-2006 01:36 PM

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;">


All times are GMT -8. The time now is 11:19 AM.

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