HighDots Forums  

absolute positioning of layer

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss absolute positioning of layer in the Macromedia Dreamweaver forum.



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

Default absolute positioning of layer - 11-16-2004 , 11:06 AM






Is there a way to lock the position of a layer on a page? My pages are fine
viewed 'full screen' but if you resize the window the layers stay put (I guess
as a result of co-ordinates to top left?) and the page moves underneath. I
didn't used to suffer as I had pages aligned left, but this site is 800px wide
and positioned central, so is causing probs. many thanks in advance


Reply With Quote
  #2  
Old   
twocan's
 
Posts: n/a

Default Re: absolute positioning of layer - 11-16-2004 , 11:22 AM






can this be of any use to you.

http://www.projectseven.com/extensions/info/layoutDesigner2/index.htm

twocan's



"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Is there a way to lock the position of a layer on a page? My pages are
fine
viewed 'full screen' but if you resize the window the layers stay put (I
guess
as a result of co-ordinates to top left?) and the page moves underneath. I
didn't used to suffer as I had pages aligned left, but this site is 800px
wide
and positioned central, so is causing probs. many thanks in advance




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

Default Re: absolute positioning of layer - 11-16-2004 , 11:24 AM



You have answered your own question, really. The layers are locked in
position.

There are really three ways I know of to make the page and its layers move
together.

1. Use dynamic javascript to reposition the layers based on some other
content that is centering. This is fairly simple to do, using a free
extension for DW (called SnapLayer) from Project Seven,
http://www.projectseven.com/

2. Make your page be contained in a centering table, put your layer into
that table, change the layer from absolute to relative positioning, and then
reposition it as needed. You will have to do this repositioning by editing
the code, however, not by dragging the layer on the screen.

3. Use CSS positioning to wrap the entire page in a division, including the
layer, and then center that division. Now everything will migrate within
the browser viewport as a unit.

Did I lose you?

To do the latter here is a good demonstration -

http://www.roast-horse.com/tutorials/_tutorials/css_centered_content/index.html

And here is some code -

(inline styles used for clarity)

STYLESHEET -

body { text-align:center; } /* for IE5/IE5.5 */
#wrapper { text-align:left; }

BODY -
<div id="wrapper" style="width:760px; top:0; margin:0 auto;
position:relative;">
<div id="layer1" style="width:200px; top: 25px; left:140px;
position:absolute;">blah</div>
<div id="layer2" style="width:180px; top: 136px; left:23px;
position:absolute;">blah</div>
</div>

Try that - an outer relatively positioned division with a width and auto
left and right margins. All interior AP divisions will be centered, yet
retain the same relative positioning.

--
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
==================

"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Is there a way to lock the position of a layer on a page? My pages are
fine
viewed 'full screen' but if you resize the window the layers stay put (I
guess
as a result of co-ordinates to top left?) and the page moves underneath. I
didn't used to suffer as I had pages aligned left, but this site is 800px
wide
and positioned central, so is causing probs. many thanks in advance




Reply With Quote
  #4  
Old   
twocan's
 
Posts: n/a

Default Re: absolute positioning of layer - 11-16-2004 , 11:31 AM



Wow,
will roast horse's example work on all browsers. do you think.

regards

twocan's


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

Quote:
You have answered your own question, really. The layers are locked in
position.

There are really three ways I know of to make the page and its layers move
together.

1. Use dynamic javascript to reposition the layers based on some other
content that is centering. This is fairly simple to do, using a free
extension for DW (called SnapLayer) from Project Seven,
http://www.projectseven.com/

2. Make your page be contained in a centering table, put your layer into
that table, change the layer from absolute to relative positioning, and
then
reposition it as needed. You will have to do this repositioning by
editing
the code, however, not by dragging the layer on the screen.

3. Use CSS positioning to wrap the entire page in a division, including
the
layer, and then center that division. Now everything will migrate within
the browser viewport as a unit.

Did I lose you?

To do the latter here is a good demonstration -

http://www.roast-horse.com/tutorials/_tutorials/css_centered_content/index.html

And here is some code -

(inline styles used for clarity)

STYLESHEET -

body { text-align:center; } /* for IE5/IE5.5 */
#wrapper { text-align:left; }

BODY -
div id="wrapper" style="width:760px; top:0; margin:0 auto;
position:relative;"
div id="layer1" style="width:200px; top: 25px; left:140px;
position:absolute;">blah</div
div id="layer2" style="width:180px; top: 136px; left:23px;
position:absolute;">blah</div
/div

Try that - an outer relatively positioned division with a width and auto
left and right margins. All interior AP divisions will be centered, yet
retain the same relative positioning.

--
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
==================

"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:cnd8i9$k6j$1 (AT) forums (DOT) macromedia.com...
Is there a way to lock the position of a layer on a page? My pages are
fine
viewed 'full screen' but if you resize the window the layers stay put (I
guess
as a result of co-ordinates to top left?) and the page moves underneath.
I
didn't used to suffer as I had pages aligned left, but this site is 800px
wide
and positioned central, so is causing probs. many thanks in advance






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

Default Re: absolute positioning of layer - 11-16-2004 , 11:36 AM



Soitenly. All v5+ for sure.

--
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
==================

"twocan's" <abbadontdoit (AT) hotmail (DOT) com> wrote

Quote:
Wow,
will roast horse's example work on all browsers. do you think.

regards

twocan's


"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cnd9j3$l9k$1 (AT) forums (DOT) macromedia.com...
You have answered your own question, really. The layers are locked in
position.

There are really three ways I know of to make the page and its layers
move together.

1. Use dynamic javascript to reposition the layers based on some other
content that is centering. This is fairly simple to do, using a free
extension for DW (called SnapLayer) from Project Seven,
http://www.projectseven.com/

2. Make your page be contained in a centering table, put your layer into
that table, change the layer from absolute to relative positioning, and
then
reposition it as needed. You will have to do this repositioning by
editing
the code, however, not by dragging the layer on the screen.

3. Use CSS positioning to wrap the entire page in a division, including
the
layer, and then center that division. Now everything will migrate within
the browser viewport as a unit.

Did I lose you?

To do the latter here is a good demonstration -

http://www.roast-horse.com/tutorials/_tutorials/css_centered_content/index.html

And here is some code -

(inline styles used for clarity)

STYLESHEET -

body { text-align:center; } /* for IE5/IE5.5 */
#wrapper { text-align:left; }

BODY -
div id="wrapper" style="width:760px; top:0; margin:0 auto;
position:relative;"
div id="layer1" style="width:200px; top: 25px; left:140px;
position:absolute;">blah</div
div id="layer2" style="width:180px; top: 136px; left:23px;
position:absolute;">blah</div
/div

Try that - an outer relatively positioned division with a width and auto
left and right margins. All interior AP divisions will be centered, yet
retain the same relative positioning.

--
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
==================

"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:cnd8i9$k6j$1 (AT) forums (DOT) macromedia.com...
Is there a way to lock the position of a layer on a page? My pages are
fine
viewed 'full screen' but if you resize the window the layers stay put (I
guess
as a result of co-ordinates to top left?) and the page moves underneath.
I
didn't used to suffer as I had pages aligned left, but this site is
800px wide
and positioned central, so is causing probs. many thanks in advance








Reply With Quote
  #6  
Old   
twocan's
 
Posts: n/a

Default Re: absolute positioning of layer - 11-16-2004 , 11:40 AM



very good eh

Thanks

twocan's

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

Quote:
Soitenly. All v5+ for sure.

--
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
==================

"twocan's" <abbadontdoit (AT) hotmail (DOT) com> wrote in message
news:cnda1l$lsb$1 (AT) forums (DOT) macromedia.com...
Wow,
will roast horse's example work on all browsers. do you think.

regards

twocan's


"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cnd9j3$l9k$1 (AT) forums (DOT) macromedia.com...
You have answered your own question, really. The layers are locked in
position.

There are really three ways I know of to make the page and its layers
move together.

1. Use dynamic javascript to reposition the layers based on some other
content that is centering. This is fairly simple to do, using a free
extension for DW (called SnapLayer) from Project Seven,
http://www.projectseven.com/

2. Make your page be contained in a centering table, put your layer
into
that table, change the layer from absolute to relative positioning, and
then
reposition it as needed. You will have to do this repositioning by
editing
the code, however, not by dragging the layer on the screen.

3. Use CSS positioning to wrap the entire page in a division, including
the
layer, and then center that division. Now everything will migrate
within
the browser viewport as a unit.

Did I lose you?

To do the latter here is a good demonstration -

http://www.roast-horse.com/tutorials/_tutorials/css_centered_content/index.html

And here is some code -

(inline styles used for clarity)

STYLESHEET -

body { text-align:center; } /* for IE5/IE5.5 */
#wrapper { text-align:left; }

BODY -
div id="wrapper" style="width:760px; top:0; margin:0 auto;
position:relative;"
div id="layer1" style="width:200px; top: 25px; left:140px;
position:absolute;">blah</div
div id="layer2" style="width:180px; top: 136px; left:23px;
position:absolute;">blah</div
/div

Try that - an outer relatively positioned division with a width and auto
left and right margins. All interior AP divisions will be centered, yet
retain the same relative positioning.

--
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
==================

"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:cnd8i9$k6j$1 (AT) forums (DOT) macromedia.com...
Is there a way to lock the position of a layer on a page? My pages are
fine
viewed 'full screen' but if you resize the window the layers stay put
(I guess
as a result of co-ordinates to top left?) and the page moves
underneath. I
didn't used to suffer as I had pages aligned left, but this site is
800px wide
and positioned central, so is causing probs. many thanks in advance










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

Default Re: absolute positioning of layer - 11-16-2004 , 11:47 AM



You're welcome. I have used this method on my site -

http://www.great-web-sights.com and havent found a failure yet....

--
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
==================

"twocan's" <abbadontdoit (AT) hotmail (DOT) com> wrote

Quote:
very good eh

Thanks

twocan's

"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cnda9t$m8e$1 (AT) forums (DOT) macromedia.com...
Soitenly. All v5+ for sure.

--
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
==================

"twocan's" <abbadontdoit (AT) hotmail (DOT) com> wrote in message
news:cnda1l$lsb$1 (AT) forums (DOT) macromedia.com...
Wow,
will roast horse's example work on all browsers. do you think.

regards

twocan's


"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cnd9j3$l9k$1 (AT) forums (DOT) macromedia.com...
You have answered your own question, really. The layers are locked in
position.

There are really three ways I know of to make the page and its layers
move together.

1. Use dynamic javascript to reposition the layers based on some other
content that is centering. This is fairly simple to do, using a free
extension for DW (called SnapLayer) from Project Seven,
http://www.projectseven.com/

2. Make your page be contained in a centering table, put your layer
into
that table, change the layer from absolute to relative positioning, and
then
reposition it as needed. You will have to do this repositioning by
editing
the code, however, not by dragging the layer on the screen.

3. Use CSS positioning to wrap the entire page in a division,
including the
layer, and then center that division. Now everything will migrate
within
the browser viewport as a unit.

Did I lose you?

To do the latter here is a good demonstration -

http://www.roast-horse.com/tutorials/_tutorials/css_centered_content/index.html

And here is some code -

(inline styles used for clarity)

STYLESHEET -

body { text-align:center; } /* for IE5/IE5.5 */
#wrapper { text-align:left; }

BODY -
div id="wrapper" style="width:760px; top:0; margin:0 auto;
position:relative;"
div id="layer1" style="width:200px; top: 25px; left:140px;
position:absolute;">blah</div
div id="layer2" style="width:180px; top: 136px; left:23px;
position:absolute;">blah</div
/div

Try that - an outer relatively positioned division with a width and
auto left and right margins. All interior AP divisions will be
centered, yet retain the same relative positioning.

--
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
==================

"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:cnd8i9$k6j$1 (AT) forums (DOT) macromedia.com...
Is there a way to lock the position of a layer on a page? My pages are
fine
viewed 'full screen' but if you resize the window the layers stay put
(I guess
as a result of co-ordinates to top left?) and the page moves
underneath. I
didn't used to suffer as I had pages aligned left, but this site is
800px wide
and positioned central, so is causing probs. many thanks in advance












Reply With Quote
  #8  
Old   
andrew coley
 
Posts: n/a

Default Re: absolute positioning of layer - 11-16-2004 , 11:50 AM



Thanks guys, will have a look at project 7 tomo.

Noddy question: is there something in propeties to change from relative to absolute; end of a long day and I can't see it?!

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

Default Re: absolute positioning of layer - 11-16-2004 , 11:52 AM



No. You would either have to do this manually to the inline code, or if the
positioning is specified in the stylesheet, to the CSS using the CSS editor
(or some other method of editing the CSS).

--
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
==================

"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks guys, will have a look at project 7 tomo.

Noddy question: is there something in propeties to change from relative to
absolute; end of a long day and I can't see it?!



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

Default Re: absolute positioning of layer - 11-16-2004 , 12:12 PM



You're welcome.

--
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
==================

"andrew coley" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
thank you!




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.