z-index
4 posters
Page 1 of 1
z-index
Hey,
So this might be a stupid question...
But what does z-index do in the css codes?
So this might be a stupid question...
But what does z-index do in the css codes?
Last edited by Mr Rockeye on May 1st 2014, 9:09 pm; edited 1 time in total
Re: z-index
What Radiohead pointed you to will provide you with the information you're looking for.
Basically z-index allows you to place elements above or behind each other. Those with a higher z-index will be shown on top of an element with a lower index. (this only works for positioned elements; absolute, relative, fixed)
A quick example for you :
As you can see, the element with a higher z-index is always shown on top of an element with a lower z-index.
Basically z-index allows you to place elements above or behind each other. Those with a higher z-index will be shown on top of an element with a lower index. (this only works for positioned elements; absolute, relative, fixed)
A quick example for you :
As you can see, the element with a higher z-index is always shown on top of an element with a lower z-index.
position:relative; z-index:1; |
position:relative; z-index:0; |
position:relative; z-index:1; |
position:relative; z-index:2; |
Re: z-index
Problem solved & topic archived.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Home Page and General Templates : Index Body / Index Box and Code
» Combine forum.htm, index.forum, index.htm pages
» Index
» Index-Box
» Index
» Combine forum.htm, index.forum, index.htm pages
» Index
» Index-Box
» Index
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum