Forums
This topic is locked
Layers - setting location coordinates
20 Jan 2003 17:03:08 J Ms posted:
I find that the location of a layer jumps around when i preview in a browser.what's the best way to control location? for example, can this be controlled by placing layer inside a table cell?
the code i'm currently using is below.
thanks for any and all suggestions.
div id="stidefinition" style="position:absolute; width:433px; height:94px; z-index:2; left: 300; top: 41px; background-color: #CCCC99; layer-background-color: #CCCC99; border: 1px none #000000; visibility: hidden;"
Replies
Replied 20 Jan 2003 17:51:02
20 Jan 2003 17:51:02 Stephen Britton replied:
Layers cannot be controlled by tables.
But you can put tables in layers.
Tables and layers are totally different. In most circumstances when you use tables, you will be using absolute positioning that means that where you put the layer is where it will be.
I do not suggest using relative placement with layers unless you are using it to center content on a page. Also, I have found that there are many more cross platform issues with relative placement of layers than abosolute.
- - WiLd
But you can put tables in layers.
Tables and layers are totally different. In most circumstances when you use tables, you will be using absolute positioning that means that where you put the layer is where it will be.
I do not suggest using relative placement with layers unless you are using it to center content on a page. Also, I have found that there are many more cross platform issues with relative placement of layers than abosolute.
- - WiLd
Replied 22 Jan 2003 11:52:14
22 Jan 2003 11:52:14 Marja Ribbers-de Vroed replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I find that the location of a layer jumps around when i preview in a browser.
what's the best way to control location? for example, can this be controlled by placing layer inside a table cell?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
First of all, don't try to put layers in tables (see: www.thepattysite.com/layer_laws.cfm).
If you need one or more absolute positioned DIV's to move with a centered layout built of tables, then use the free SnapLayers extension (available from www.projectseven.com) to anchor the layer to an image somewhere in the centered table.
In the first week of February we will release a commercial extension (called Layer Genie) here at DMXzone that can position layers relative to some 'anchor' object on the page, like another DIV, or an image, or a named A tag.
And besides anchoring, Layer Genie can do a lot of impressive other things with layers.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
I find that the location of a layer jumps around when i preview in a browser.
what's the best way to control location? for example, can this be controlled by placing layer inside a table cell?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
First of all, don't try to put layers in tables (see: www.thepattysite.com/layer_laws.cfm).
If you need one or more absolute positioned DIV's to move with a centered layout built of tables, then use the free SnapLayers extension (available from www.projectseven.com) to anchor the layer to an image somewhere in the centered table.
In the first week of February we will release a commercial extension (called Layer Genie) here at DMXzone that can position layers relative to some 'anchor' object on the page, like another DIV, or an image, or a named A tag.
And besides anchoring, Layer Genie can do a lot of impressive other things with layers.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 23 Jan 2003 20:40:50
23 Jan 2003 20:40:50 J Ms replied:
i wish it were true! with a setting of absolute positioning, the layer still moves to another location.
First when i go into any browser it does not match the location on the screen in Dreameaver. is this simply because Dreamweaver is not true WYSIWYG?
Secondly, when i go into a different browsers, the location of the layer is different in each browser. (Netscape 4.7, Netscape 7, and IE 5).
is there something i'm missing??
thank you, thank you.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Layers cannot be controlled by tables.
But you can put tables in layers.
Tables and layers are totally different. In most circumstances when you use tables, you will be using absolute positioning that means that where you put the layer is where it will be.
I do not suggest using relative placement with layers unless you are using it to center content on a page. Also, I have found that there are many more cross platform issues with relative placement of layers than abosolute.
- - WiLd
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
First when i go into any browser it does not match the location on the screen in Dreameaver. is this simply because Dreamweaver is not true WYSIWYG?
Secondly, when i go into a different browsers, the location of the layer is different in each browser. (Netscape 4.7, Netscape 7, and IE 5).
is there something i'm missing??
thank you, thank you.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Layers cannot be controlled by tables.
But you can put tables in layers.
Tables and layers are totally different. In most circumstances when you use tables, you will be using absolute positioning that means that where you put the layer is where it will be.
I do not suggest using relative placement with layers unless you are using it to center content on a page. Also, I have found that there are many more cross platform issues with relative placement of layers than abosolute.
- - WiLd
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 24 Jan 2003 10:05:10
24 Jan 2003 10:05:10 Julio Taylor replied:
what about using a css class to declare to absolute positioning of the layer?
------------------------
Julio
PHP | MySQL | UD4
ICQ: 19735247
------------------------
Julio
PHP | MySQL | UD4
ICQ: 19735247
Replied 28 Jan 2003 20:51:07
28 Jan 2003 20:51:07 J Ms replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
what about using a css class to declare to absolute positioning of the layer?
------------------------
Julio
PHP | MySQL | UD4
ICQ: 19735247
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
using no tables, thank you.
instead, using inches for L and T property settings for location of box.
thank you all for getting me to think.
what about using a css class to declare to absolute positioning of the layer?
------------------------
Julio
PHP | MySQL | UD4
ICQ: 19735247
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
using no tables, thank you.
instead, using inches for L and T property settings for location of box.
thank you all for getting me to think.