HighDots Forums  

Table differences

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Table differences in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Grosz
 
Posts: n/a

Default Table differences - 07-24-2008 , 10:49 AM






I am working with someone elses table and code, but here goes.

There is a page at
http://www.scootervilleusa.com/scoot...ers.cfm?PID=48 that shows
all the colors available for the product.

If you go to the main product line (click on the word LP for example, use
the checkboxes and select 2 items, and at the bottom of the screen click
'compare') you'll see the colors available for each product.

Why are the color boxes aligned differently in the compare screen? They're
higher towards the top of the table where as they aren't on the normal
product page......

Why??



Reply With Quote
  #2  
Old   
Mangler
 
Posts: n/a

Default Re: Table differences - 07-24-2008 , 11:56 AM






On Jul 24, 10:49*am, "Steve Grosz" <boise_bo... (AT) hotmail (DOT) com> wrote:
Quote:
I am working with someone elses table and code, but here goes.

There is a page athttp://www.scootervilleusa.com/scooters/lp_scooters.cfm?PID=48that shows
all the colors available for the product.

If you go to the main product line (click on the word LP for example, use
the checkboxes and select 2 items, and at the bottom of the screen click
'compare') you'll see the colors available for each product.

Why are the color boxes aligned differently in the compare screen? *They're
higher towards the top of the table where as they aren't on the normal
product page......

Why??
looks like your CSS! On the page that works correctly I see that you
gave the table a id of "id="prodTable" and inside the "<td>" tag where
the colors are there is a "<div>" tag with the id of
"id="ColorTGB"... Now on the page where the colors are showing up
incorrectly the table has no id attribute nor does the "<div>" tag
inside the "<td>" where the colors are. If you just add those id
attributes to the compare page on the table and div tags it will show
up correctly. Below is the code ( i only put the respective parts of
the table on here )

<table width="80%" border="1" id="prodTable">

<td width="35%">
<div id="ColorTGB">

<img src="images/prod_colors/r1.gif">

<img src="images/prod_colors/c1.gif">

<img src="images/prod_colors/b0.gif">

<img src="images/prod_colors/ch2.gif">
<img src="images/prod_colors/s1.gif">
</div>
</td>
<td width="35%">
<div id="ColorTGB">

<img src="images/prod_colors/w1.gif">

<img src="images/prod_colors/r1.gif">

<img src="images/prod_colors/b1.gif">

<img src="images/prod_colors/o1.gif">

<img src="images/prod_colors/s1.gif">

<img src="images/prod_colors/b0.gif">


</div>
</td>


</table>


Reply With Quote
  #3  
Old   
Mangler
 
Posts: n/a

Default Re: Table differences - 07-24-2008 , 12:01 PM



On Jul 24, 11:56*am, Mangler <webmas... (AT) repairresource (DOT) com> wrote:
Quote:
On Jul 24, 10:49*am, "Steve Grosz" <boise_bo... (AT) hotmail (DOT) com> wrote:

I am working with someone elses table and code, but here goes.

There is a page athttp://www.scootervilleusa.com/scooters/lp_scooters.cfm?PID=48thatshows
all the colors available for the product.

If you go to the main product line (click on the word LP for example, use
the checkboxes and select 2 items, and at the bottom of the screen click
'compare') you'll see the colors available for each product.

Why are the color boxes aligned differently in the compare screen? *They're
higher towards the top of the table where as they aren't on the normal
product page......

Why??

looks like your CSS! *On the page that works correctly I see that you
gave the table a id of "id="prodTable" and inside the "<td>" tag where
the colors are there is a "<div>" tag *with the id of
"id="ColorTGB"... *Now on the page where the colors are showing up
incorrectly the table has no id attribute nor does the "<div>" tag
inside the "<td>" *where the colors are. *If you just add those id
attributes to the compare page on the table and div tags it will show
up correctly. *Below is the code ( i only put the respective parts of
the table on here )

table width="80%" border="1" id="prodTable"

* * * * <td width="35%"
* * * * * * * * <div id="ColorTGB"

* * * * * * * * * * * * <img src="images/prod_colors/r1.gif"

* * * * * * * * * * * * <img src="images/prod_colors/c1.gif"

* * * * * * * * * * * * <img src="images/prod_colors/b0.gif"

* * * * * * * * * * * * <img src="images/prod_colors/ch2.gif"
* * * * * * * * * * * * <img src="images/prod_colors/s1.gif"
* * * * * * * * </div
* * * * </td
* * * * <td width="35%"
* * * * * * * * <div id="ColorTGB"

* * * * * * * * * * * * <img src="images/prod_colors/w1.gif"

* * * * * * * * * * * * <img src="images/prod_colors/r1.gif"

* * * * * * * * * * * * <img src="images/prod_colors/b1.gif"

* * * * * * * * * * * * <img src="images/prod_colors/o1.gif"

* * * * * * * * * * * * <img src="images/prod_colors/s1.gif"

* * * * * * * * * * * * <img src="images/prod_colors/b0.gif"

* * * * * * * * </div
* * * * </td

* * * * </table

Forgot to mention that this is just why it wasnt working. If the
style for the table for the compare page needs to be different then
just create new CSS properties for the compare table.


Reply With Quote
  #4  
Old   
Sw Jiten
 
Posts: n/a

Default Re: Table differences - 07-24-2008 , 12:09 PM



Ok first of all:

You must consider this:

When you click on the first link you have given , it is not the same code that
when you go to the "compare link" . So, in one code the alignment is declared
in a different way and so works... In order to see it you can click on your
browser : Page > View Source Code on both links and compare how you
declared both codes, there are subtle differences that cause the "problem". Fix
it on the CFM (coldfusion files) accordign to your main HTML, and that's it...


Reply With Quote
Reply




Thread Tools
Display Modes

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



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