Solved

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

Posted on 2014-11-26
6
118 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks. peter
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now