HighDots Forums  

Re: DIV positioning

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: DIV positioning in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joe {RoastHorse}
 
Posts: n/a

Default Re: DIV positioning - 07-09-2004 , 09:42 AM






not exactly. in your example. div1 is taken out of the flow and
absolutely positioned 20px left and 30px top. div2 in normal flow would
be in the browser top left (because div1 is out of the flow), relative
positioning shifts div2 20px left of its natural position. what you end
up with is the 2 divs overlaid.

joe




Murray *TMM* wrote:

Quote:
It will. Relative positioning is always relative to the code flow. If the
two divisions are always immediately contiguous in the code, then they will
always be positioned one above the other in the plane of the page.


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

Default Re: DIV positioning - 07-09-2004 , 10:07 AM






In my example I changed both divs to relative positioning, no?

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

"Joe {RoastHorse}" <joe (AT) roast-horse (DOT) commmmm> wrote

Quote:
not exactly. in your example. div1 is taken out of the flow and
absolutely positioned 20px left and 30px top. div2 in normal flow would
be in the browser top left (because div1 is out of the flow), relative
positioning shifts div2 20px left of its natural position. what you end
up with is the 2 divs overlaid.

joe




Murray *TMM* wrote:

It will. Relative positioning is always relative to the code flow. If
the
two divisions are always immediately contiguous in the code, then they
will
always be positioned one above the other in the plane of the page.




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.