Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
asht #1
relative vs abolute position with layers in liquidinterface
:confused;
Newbie here.
I've got a 2 column table in an editable area of a page created from a
template. In column 1 there is a roll over image (so far, so good) , in column
2 there is a text title.
I want to place a layer over the text title that will appear with mouse over
of the image. All is well if I make the layer absolute in position, however, I
have a liquid interface and when I resize the window, the layers do not move
with the images.
I tried changing the layers to a relative position and placing the div within
the cell, but this just squashed my title, even though the z index of the layer
was 10.
Can some kind person please help me out?
asht Guest
-
DW8 messed my relative position layer behaviors
I recently upgraded from MX to Studio 8. I have a website where I was using a series of "set text of layer" behaviors to write copy to a relative... -
RELATIVE LAYERS..... take up space even when invisible?
hey guys, I am trying to make this stupid like, drop down menu type thing, pretty much I have a layer that i am showing and hiding when I click a... -
Placing bitmaps in Illustrator CS: scale/position relative to artboard
When placing a bitmap (in my case a .PNG) the image appears at a scale and at a position that is nowhere specified. I have the impression that the... -
Clip position relative to _root
Hi all I have a clip buried deep within other clips, and I want to find its _x and _y position relative to the _root clip. Is this possible ... -
Relative positon to layers
Layers are a wonderful way of building up ones web page. I would like to apply a relative position to these layers. Could somebody advise me how... -
Murray *TMM* #2
Re: relative vs abolute position with layers in liquid interface
This post is more suited for the dreamweaver forum than the dynamic html
one.
If you are going to experiment like this, then this may help you understand> I tried changing the layers to a relative position and placing the div
> within
> the cell, but this just squashed my title, even though the z index of the
> layer
> was 10.
positioning a bit -
There are 4 different types of positioning:
Absolute
Relative
Fixed
Static
Here is a brief explanation of each kind....
Position:absolute
-----------------------
This does several things -
1. It 'removes' the element from the flow of the code on the* page so that
it can no longer influence the size or position of any other pa*ge element
(except for those contained within it, of course).
2. The absolutely positioned element takes its position from the position of
its closest PA*RENT *positioned*
element - in the absence of any explicitly positioned parent, this will
default to the <body> tag, which is always positioned *at 0,0 in the browser
viewport.
This means that it doesn't matter where in the HTML code the laye*r's code
appears (between <body> and </body>), its location on the screen will not
change. Furthe*rmore, the
space in which this element would have appeared were it not positi*oned is
not
preserved on the screen. In other words, absolutely positioned elements
don't take up any space on the page. In fact, they FLOAT over the page.
Position:relative
----------------------
In contrast to absolute positioning, a relatively positioned page element is
*not* removed from t*he flow of the
code on the page, so it will use the spot where it would have* appeared
based
on its position in the code as its zero point reference. If* you then
supply top, right, bottom, or left positions to the style for this *element,
those
values will be used as offsets from its zero point.
This means that it DOES matter where in the code the relativ*ely positioned
element appears, as it will be positioned in that location (*factoring in
the offsets) on the screen. Furthermore, the space where this e*lement
would
have appeared is preserved in the display, and can therefore* affect the
placement of succeeding elements. This means that the taller a relatively
positioned element is, the more space it forces on the page.
Position:static
-------------------
As with relative position, static positions also "go with *the flow". An
element with a static position cannot have values for offset*s (top, right,
left, bottom) or if it has them, they will be ignored. Unless explicitly
positioned, all div elements default to static positioning.
Position:fixed
------------------
A page element with this style will not scroll as the page c*ontent scrolls.
Support for this in elements other than page backgrounds is *quirky
There are two other things you need to know:
1. ANY page element can be positioned - paragraphs, tables, images, lists,
etc.
2. The <div> tag is a BLOCK level tag. This means that if it is not
positioned or explicitly styled otherwise, a) it will always begin on a new
line on the screen, and b) it will always force content to a new line below
it, and c) it will always take up the entire width of its container (i.e.,
width:100%).
You can see a good example of the essential difference between absolute and
relative positioning here -
[url]http://www.great-web-sights.com/g_layersdemo.asp[/url]
===================
Now - to help you with your page, I would need to see it. Can you post a
link to the page?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"asht" <webforumsuser@macromedia.com> wrote in message
news:diq09s$bv8$1@forums.macromedia.com...> :confused;
>
> Newbie here.
>
> I've got a 2 column table in an editable area of a page created from a
> template. In column 1 there is a roll over image (so far, so good) , in
> column
> 2 there is a text title.
>
> I want to place a layer over the text title that will appear with mouse
> over
> of the image. All is well if I make the layer absolute in position,
> however, I
> have a liquid interface and when I resize the window, the layers do not
> move
> with the images.
>
> I tried changing the layers to a relative position and placing the div
> within
> the cell, but this just squashed my title, even though the z index of the
> layer
> was 10.
>
> Can some kind person please help me out?
>
>
Murray *TMM* Guest
-
asht #3
Re: relative vs abolute position with layers in liquidinterface
Thanks for both the comment about the correct forum, the link and response.
I am finding that understanding the terminology and being able to ask
meaningful questions and understand responses to the questions I do ask the
greatest challenge at present.
The page is not online yet. I still have some layout issues to sort out. It is
my first site for someone else (a friend - no pay) so is very much a learning
exercise.
I believe that I can solve my problem with the rsponse. Thank you.
asht Guest
-
Murray *TMM* #4
Re: relative vs abolute position with layers in liquid interface
Good luck. Post back over in the Dreamweaver forum if you have more
problems.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"asht" <webforumsuser@macromedia.com> wrote in message
news:dishm2$i3j$1@forums.macromedia.com...> Thanks for both the comment about the correct forum, the link and
> response.
>
> I am finding that understanding the terminology and being able to ask
> meaningful questions and understand responses to the questions I do ask
> the
> greatest challenge at present.
>
> The page is not online yet. I still have some layout issues to sort out.
> It is
> my first site for someone else (a friend - no pay) so is very much a
> learning
> exercise.
>
> I believe that I can solve my problem with the rsponse. Thank you.
>
>
>
Murray *TMM* Guest



Reply With Quote

