Solved

Wat means z-index when using divisions and how to put on top of the other?

Posted on 2014-11-26
6
124 Views
Last Modified: 2014-11-29
Hi,

can someone expain to me what z-index means when I use devisions. And how can I put one devision on top of the other (parent -> child) in the GUI of Dreamweaver. Because i do it in code but i want to know how to do this with the Gui of DW.

peter
0
Comment
Question by:peterkiers
  • 2
  • 2
6 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 250 total points
ID: 40467227
The way to put one on top of the other is to give the parent container a position:relative and give child div's a position:absolute and then use top and left to position them
<div style="position:relative">
<div style="position:absolute;top:10px;left:10px"></div>
<div style="position:absolute;top:0;left:0"></div>
</div>

Open in new window

0
 
LVL 9

Accepted Solution

by:
WebDevEM earned 250 total points
ID: 40467242
Z-Index is a CSS setting that determines the stacking of different elements in a browser window.  A higher z-indes means the element is closer to the person viewing the page (further away from the base of the screen)

There is a video at https://www.youtube.com/watch?v=vo5Aw2WJlZ4 which shows you how to do this in DreamWeaver, and a more detailed description of how z-index works at http://webdesign.tutsplus.com/articles/what-you-may-not-know-about-the-z-index-property--webdesign-16892.  If you search Google for "css z-index" there are also MANY other tutorials out there, but they are not all easy to understand.
0
 
LVL 1

Author Comment

by:peterkiers
ID: 40467456
Hi yes thank you for the explenation. Do you have any explenation of the position property: absolute, relative and fixed and static. Peter
0
 
LVL 58

Expert Comment

by:Gary
ID: 40467469
position:absolute means whatever left and top settings you set position the element at those coordinates relative to the nearest relatively positioned element

If no relative positioned elements then it will be relative to the browser window

http://css-tricks.com/absolute-positioning-inside-relative-positioning/
0
 
LVL 1

Author Comment

by:peterkiers
ID: 40467526
Thanks. peter
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
alert on input text 2 23
href return to normal window 5 28
html form layout 4 34
How to pass values to HTML-5 attribute dynamically? 24 44
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question