Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET CSS HTML
what does z-index in css??
please help me?
thanks so much
tanks guy
Posted 3-Mar-13 1:57am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

z-index:
So far you know x-axis and y-axis and what they refer.. Like wise there is another axis called z-axis which refer the order of elements. Also it referred as ordering of elements in stack order.
 
Which means element with greater z-index will appear on element with lesser z-index..
Ex:
<div id="div1" style="position:absolute; z-index;100; height:100px; width:100px;"></div>
<div id="div2" style="position:absolute; z-index;200; height:100px; width:100px;"></div>
Here div2 will appear on div1...
 
Also z-index only works on positioned elements
(position:absolute, position:relative, or position:fixed)
 
Refer below for more info...
http://www.w3schools.com/cssref/pr_pos_z-index.asp[^]
  Permalink  
v5
Comments
Raje_ at 8-Mar-13 5:19am
   
Good explanation, my +5.
vinodkumarnie at 8-Mar-13 5:32am
   
Thank you...
ridoy at 9-Mar-13 1:24am
   
good answer..+5
vinodkumarnie at 9-Mar-13 1:35am
   
Thank you very much.. :-)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
 
A very quick search gave over 10 million hits: Google[^]
 
In future, please try to do at least basic research yourself, and not waste your time or ours.
  Permalink  
Comments
Nandakishorerao at 9-Mar-13 1:42am
   
good point OriginalGriff

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 105
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 9 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100