HighDots Forums  

Using layers and tables

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Using layers and tables in the Macromedia Dreamweaver forum.



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

Default Using layers and tables - 07-11-2004 , 04:28 PM






I have a table that is center justified, If I place a layer in the table the
layer postion is based off of the page corner (I think) so when I view the web
page the layer will shift to the left because the page will center due to the
table. How do I make the layer follow the table so when the table centers in
the browser the layer will move with it and not be based off of the absolute
postition

Thanks for the help


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

Default Re: Using layers and tables - 07-11-2004 , 06:33 PM






mbluedke,

Instead of using an "absolute" CSS position you should use "Relative"
positioning.
Relative positioning will dynacally adjust the child element's position based
on the parent element's X,Z postion.

<table width="80" border="1" bordercolor="#000000" align="center"
cellpadding="0" cellspacing="10">
<tr>
<td width="49%">
<div id="Layer1" style="position:absolute; width:200px; z-index:1; left:
5px; top: 5px;">An Absolute Layer </div>
</td>
</tr>
<tr>
<td>
<div id="Layer2" style="position:relative; width:200px; z-index:2; left:
5px; top: 5px;">A Relative Layer </div>
</td>
</tr>
</table>

MindCrafter
[l=www.mindcrafter.com]http://www.mindcrafter.com


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

Default Re: Using layers and tables - 07-11-2004 , 06:44 PM



Never (ever) put absolutely positioned elements directly into a table cell.
You can put them into a relatively positioned element in a table cell, but
not directly into a table cell.

By putting an AP element into a table cell, you guarantee that you will see
browser rendering differences between platforms....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

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

Quote:
mbluedke,

Instead of using an "absolute" CSS position you should use "Relative"
positioning.
Relative positioning will dynacally adjust the child element's position
based
on the parent element's X,Z postion.

table width="80" border="1" bordercolor="#000000" align="center"
cellpadding="0" cellspacing="10"
tr
td width="49%"
div id="Layer1" style="position:absolute; width:200px; z-index:1; left:
5px; top: 5px;">An Absolute Layer </div
/td
/tr
tr
td
div id="Layer2" style="position:relative; width:200px; z-index:2; left:
5px; top: 5px;">A Relative Layer </div
/td
/tr
/table

MindCrafter
[l=www.mindcrafter.com]http://www.mindcrafter.com




Reply With Quote
  #4  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Using layers and tables - 07-11-2004 , 08:31 PM



You could have a look at pviis' snap layer extension - at
www.projectseven.com
Should do what you are after.

--
Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------

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

Quote:
I have a table that is center justified, If I place a layer in the table
the
layer postion is based off of the page corner (I think) so when I view the
web
page the layer will shift to the left because the page will center due to
the
table. How do I make the layer follow the table so when the table centers
in
the browser the layer will move with it and not be based off of the
absolute
postition

Thanks for the help




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.