Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-2008, 02:49 PM
Steve Grosz
 
Posts: n/a
Table differences

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 (permalink)  
Old 07-24-2008, 03:56 PM
Mangler
 
Posts: n/a
Re: Table differences

On Jul 24, 10:49*am, "Steve Grosz" <boise_bo...@hotmail.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=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 (permalink)  
Old 07-24-2008, 04:01 PM
Mangler
 
Posts: n/a
Re: Table differences

On Jul 24, 11:56*am, Mangler <webmas...@repairresource.com> wrote:
> On Jul 24, 10:49*am, "Steve Grosz" <boise_bo...@hotmail.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 (permalink)  
Old 07-24-2008, 04:09 PM
Sw Jiten
 
Posts: n/a
Re: Table differences

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

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:46 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108