Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

header.php "error"


ekieds

Recommended Posts

Posted

i'm trying to include a background image in table to dont have a blank space

 

look what happends:

http://img141.imageshack.us/img141/1844/imagemim2.jpg

"essa parte não deveria existir" = this blank should not exist

 

here's the code i'm using to try this:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0" background="../images/bg.jpg">
 <tr class="header">
<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'ar_topo.jpg', 'Apenas Rabiscos') . '</a>'; ?></td>
 </tr>
</table>

Posted

Its because your table is part of a previous column thats constraining it use colspan on that to extend, but you might be better to use div instead, its more flexible.

 

ie enclose table with:

 

top of header:

 

<div style="background-image:url(images/title.jpg); padding-bottom:10px; margin-bottom:10px; padding-top:0px; background-position: center right ;

 

background-repeat: no-repeat; layer-background-image:url(images/title.jpg); border-bottom: 2px solid #999999">

 

bottom:

 

</div>

 

B)

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted
Its because your table is part of a previous column thats constraining it use colspan on that to extend, but you might be better to use div instead, its more flexible.

 

ie enclose table with:

 

top of header:

 

<div style="background-image:url(images/title.jpg); padding-bottom:10px; margin-bottom:10px; padding-top:0px; background-position: center right ;

 

background-repeat: no-repeat; layer-background-image:url(images/title.jpg); border-bottom: 2px solid #999999">

 

bottom:

 

</div>

 

B)

 

it's work!

problem fixed

thanks!

Posted

sorry for the spam but now it's other problem

a "broken line" in header

look: http://img139.imageshack.us/img139/9504/imagemaa5.jpg

 

<div widht="100%" height="190" style="background-image:url(images/bg.jpg);padding-bottom:-10px; margin-bottom:-10px; padding-top:-10px; background-position: background-repeat: no-repeat; layer-background-image:url(images/bg.jpg); border-bottom: 0px solid #999999">
<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'ar_topo.jpg', 'Apenas Rabiscos') . '</a>'; ?></td>
<td align="right" valign="bottom"><?php echo "<a href=\"http://www.orkut.com/Community.aspx?cmm=16072160\">" . tep_image(DIR_WS_IMAGES . 'orkut-logo.png', 'Apenas Rabiscos no Orkut')?> <?php echo "<a href=\"http://www.fotolog.com/apenas_rabiscos\">" . tep_image(DIR_WS_IMAGES . 'fotolog-logo.png', 'Apenas Rabiscos no Fotolog')?></td>
</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...