Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Description Overlap


Guest

Recommended Posts

I have this one:

<table border="0" cellspacing="1" width="100%" id="AutoNumber1">    <tr>      

 <td width="68%" colspan="2">      <p align="center">AnnaKay offers a black, one-piece maillot swimsuit to       coordinate with our designs. It has adjustable       straps and can be worn either straight or crisscrossed. </p>      <p align="center">It is made of nylon/spandex with power netting in front       for added support and are offered with a padded bra       for added fullness.</p>      <p align="center"> AnnaKay has also added extra length and fullness in       seat to eliminate the tug-of-war!<p> </td>      <td width="34%" colspan="2">       </td>    </tr>    <tr>      <td width="17%">      <img border="0" src="http://www.annakaydesigns.com/SSBack.jpg" width="150" height="240"></td>      <td width="17%">      <img border="0" src="http://www.annakaydesigns.com/SSBackX.jpg" width="144" height="240"></td>      <td width="17%">      <p align="center"> </td>      <td width="17%">      <p align="center">       </td>    </tr>  </table>

 

and a bunch of these:

    <p align="center"><font face="Verdana, Arial, Helvetica" size="5"><b>D1</b><br>

   100% Polyester Sheer<br>

   Silver</font></p>

   <table border="0" cellspacing="0" width="650" id="AutoNumber2" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="171">

     <tr>

       <td rowspan="2" height="171">

       <p align="center">

       <img border="0" src="http://www.annakaydesigns.com/popups/d1rotate.gif" width="130" height="325"></td>

       <td height="141">

       <p align="center">

       <img border="0" src="http://www.annakaydesigns.com/popups/s1fabric.jpg" width="300" height="300"></td>

     </tr>

     <tr>

       <td height="30">

       <p align="center"> </td>

     </tr>

   </table>

Link to comment
Share on other sites

You have several extra tags that are causing your problem. Try simplifying your tables.

 

<table border="1" cellspacing="1" width="100%" id="AutoNumber1">

<tr>

 <td width="68%" colspan="2">

	 <p align="center">

	 AnnaKay offers a black, one-piece maillot swimsuit to coordinate with our

	 designs. It has adjustable straps and can be worn either straight or

	 crisscrossed. 

	 </p>

	 <p align="center">

	 It is made of nylon/spandex with power netting in front for added support and

	 are offered with a padded bra for added fullness.

	 </p>

	 <p align="center">

   AnnaKay has also added extra length and fullness in seat to eliminate the

	 tug-of-war!

	 <p>

 </td>

</tr>

<tr>

 <td width="17%">

	 <img border="0" src="http://www.annakaydesigns.com/SSBack.jpg" width="150" height="240">

 </td>

 <td width="17%">

	 <img border="0" src="http://www.annakaydesigns.com/SSBackX.jpg" width="144" height="240">

 </td>

</tr>

</table>

Link to comment
Share on other sites

I copied and pasted it. On the one you did, it overlapped to. I'm running at 800x600 screen resolution, but the overlap changes as the resolution is increased.

Link to comment
Share on other sites

I'm running at 800x600 screen resolution,

 

Ah, ok, now I understand.....You're getting overlap because the picture is so large...not because the code is messy.

 

Here's what I would suggest:

 

1- Install one of the multiple picture contributions.

 

2- Use thumbnails with larger images in popups.

Link to comment
Share on other sites

Take the "Width="100%" out of your table declaration and it should fix the problem...

 

The default OSC Code puts the entire description into a set of paragraph tags (<p>...</p>) which creates very unothodox and non-standard code when you use HTML in the descriptions so it is tricky... Not only that the Image is in a separate table which is floated to the right but rendered in before the description. Not exactly incorrect code but could be handled better with DIVS to control placement properly.

Link to comment
Share on other sites

DIVs are an HTML tag that allow you to make various containers on your site.

 

For example in OSC, the header and footer can be such containers. you can also have separate containers for the left column, content and right column. They are similar to tables but a lot easier to use and manipulate. Plus if you use the DIV tag, your HTML code is easier to maintain and about 1/3 the size of a similar layout with tables. If you have a complicated layout, the size savings can be a lot larger.

Link to comment
Share on other sites

Ah! No! it didn't work! I was still in 1024x768 when I looked at it. By the way, even at 1024x768, if you have the Favorites tab and larger font sizes enabled, it overlaps too. The option you suggested, BirdBrain, doesn't seem like a good way to go for me. Is there a way to stick the description and the image in separate cells of a table so that this wouldn't happen. For example (i made this in Paint) http://members.cox.net/simkyle/example.bmp

Link to comment
Share on other sites

I'm not very good when it comes to decoding this mumbo jumbo code. If its not too much trouble, can you please point out where I would put the DIV command?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...