Adobe Dreamweaver Forums



Last 10 THreads :         ie popup trouble (Last Post : E Michael Brandt - Replies : 1 - Views : 2 )           »          Wii (Last Post : bhooree - Replies : 0 - Views : 1 )           »          ActionScript 3.0 on Handhelds (Last Post : bhooree - Replies : 0 - Views : 1 )           »          Need opinion (Last Post : elyelyely - Replies : 0 - Views : 1 )           »          Design View (Last Post : RGolfer - Replies : 4 - Views : 5 )           »          Dreamweaver keeps creating files where not wanted (Last Post : Gary White - Replies : 9 - Views : 10 )           »          Re: Connecting local to remote site (Last Post : Murray *ACE* - Replies : 2 - Views : 3 )           »          Mouseover question (Last Post : Murray *ACE* - Replies : 4 - Views : 5 )           »          How do I add existing files to the local files of a site (Last Post : Murray *ACE* - Replies : 5 - Views : 6 )           »          button test (Last Post : Richard Ragon - Replies : 7 - Views : 8 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: ,

Reply
  #1 (permalink)  
Old 07-24-2008, 03:08 PM
Steve Grosz
 
Posts: n/a
Diggs:
Default 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
Sponsored Links
  #2 (permalink)  
Old 07-24-2008, 04:07 PM
Mangler
 
Posts: n/a
Diggs:
Default 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_scoot ers.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:07 PM
Mangler
 
Posts: n/a
Diggs:
Default 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_scoot ers.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:39 PM
Sw Jiten
 
Posts: n/a
Diggs:
Default 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


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
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk