HighDots Forums  

layers within a table

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss layers within a table in the Macromedia Dreamweaver forum.



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

Default layers within a table - 08-01-2004 , 03:18 PM






i have set up a scrolling layer within a table using p7's geewizz scroller
extention...anyway when i resize the browser window the layer content moves out
of the alignment . What i need is for this scroller to be emmbeded in the
content table. It's diving me crazy. Here is the link mabye will take pity on
my lack of coding skills. Note the content on any of the pages with the
scroller will not stay within the table.
http://www.pacificrimsafety.ca/oilfieldsafety.htm


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 03:27 PM






Some rules for you -

1. Never put absolutely positioned page elements, i.e., "layers" (as well
as anything else, nearly), directly into table cells. They should be placed
outside of every other page container, except <body></body> unless you are
quite comfortable with CSS.

2. Never expect absolutely positioned page elements to do anything other
than position themselves absolutely on the screen.

Your expectation is a violation of rule 2. The layer is NOT moving - it's
your table content that is!

So - now you have limited options:

a) use PVII's SnapLayer extension to dynamically position the scroller's
daddyLayer to some content in the table, so that as the table moves, the
layer will track it (both onLoad and onResize), or
b) use CSS to wrap everything in a centering division, in which case your
absolutely positioned layer will always position with regard to the location
of the centering division, and not the <body> tag.

If either of these options sounds unpalatable, it's only because you have
elected to use absolutely positioned elements in combination with centering
elements. Of course, you could make the table left aligned rather than
centering and that would solve everything too.

So, what's it going to be? 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tgerby" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
i have set up a scrolling layer within a table using p7's geewizz scroller
extention...anyway when i resize the browser window the layer content
moves out
of the alignment . What i need is for this scroller to be emmbeded in the
content table. It's diving me crazy. Here is the link mabye will take pity
on
my lack of coding skills. Note the content on any of the pages with the
scroller will not stay within the table.
http://www.pacificrimsafety.ca/oilfieldsafety.htm




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

Default Re: layers within a table - 08-01-2004 , 04:06 PM



thank you for your intrest. ok i see what you mean. the table repositions
itself and the the layers are absolute. I see when i align the tables left it
does work but i like this page centered. So do i change the tags from absolute
to relative or is there an easyer way for a dummy like me to get this geewizz
scroller to follow the table when it recenters itself. I checked out the p7
snap to extension and it didn't like the multipe layers of the scroller. sorry
if i appear a novice...it's because I am.


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 04:47 PM



You would only need to snap the daddyLayer of the scroller. Since the rest
of the layers are nested within this, they will come along for the ride.

Can you upload your page somewhere and post a URI so I can take a look at
the code?


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tgerby" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
thank you for your intrest. ok i see what you mean. the table repositions
itself and the the layers are absolute. I see when i align the tables left
it
does work but i like this page centered. So do i change the tags from
absolute
to relative or is there an easyer way for a dummy like me to get this
geewizz
scroller to follow the table when it recenters itself. I checked out the
p7
snap to extension and it didn't like the multipe layers of the scroller.
sorry
if i appear a novice...it's because I am.




Reply With Quote
  #5  
Old   
tgerby
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 05:24 PM



sound good. upload the page? its up. do i need to do something else for you to check out the code?.http://www.pacificrimsafety.ca

Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 05:51 PM



You do not have permission to resize my browser window. Please don't do
that.

I do not see a scrolling layer on that page.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tgerby" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
sound good. upload the page? its up. do i need to do something else for
you to check out the code?.http://www.pacificrimsafety.ca




Reply With Quote
  #7  
Old   
tgerby
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 06:18 PM



I suspect you mean the script to maximse the browser is that not good designer
etiquette ? I was compensating (short term) for the layer issue. sorry i was
not more specific. several pages have this scroller
eg.http://www.pacificrimsafety.ca/constructionsafety.htm


Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 06:27 PM



Many people will regard resizing the browser window (from their preferred
settings) to be rude, since you do not return the browser to its state
before you messed with it.

All you need to do is to snap this layer - <div id="p7scroller1" - and the
rest of the scroller layers will come with it. Make sure you snap onLoad
and onResize as detailed in the behavior's Help file.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tgerby" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I suspect you mean the script to maximse the browser is that not good
designer
etiquette ? I was compensating (short term) for the layer issue. sorry i
was
not more specific. several pages have this scroller
eg.http://www.pacificrimsafety.ca/constructionsafety.htm




Reply With Quote
  #9  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 06:52 PM



One thing I hate about scrollers is that they usually contain information I
would want to print out. Guess what happens when you print this page? You
get only the visible content of the scroller.

I just don't use them....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
Many people will regard resizing the browser window (from their preferred
settings) to be rude, since you do not return the browser to its state
before you messed with it.

All you need to do is to snap this layer - <div id="p7scroller1" - and the
rest of the scroller layers will come with it. Make sure you snap onLoad
and onResize as detailed in the behavior's Help file.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tgerby" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:cejq7e$4f3$1 (AT) forums (DOT) macromedia.com...
I suspect you mean the script to maximse the browser is that not good
designer
etiquette ? I was compensating (short term) for the layer issue. sorry i
was
not more specific. several pages have this scroller
eg.http://www.pacificrimsafety.ca/constructionsafety.htm






Reply With Quote
  #10  
Old   
tgerby
 
Posts: n/a

Default Re: layers within a table - 08-01-2004 , 07:01 PM



Thank you. the snap to works but not on all layers of the scroller for some
strange reason. i followed your instructions exactly. that is the nature of
this beast i suppose. I will apply the snap to all the realted layers. thanks
again. do you know why when i make this change in my master template it will
not update the rest of the attached pages? it is working fine. I tested some
simple chages to template. it updates relative pages fine but it does not
update the new snap behaviors when i try to save all. is there an override?


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 - 2009, Jelsoft Enterprises Ltd.