Why does z-index not work

0 votes

So if I understand z-index correctly, it would be perfect in this situation:

enter image description here

I want to place the bottom image (the tag/card) below the div above it. So you can't see the sharp edges. How do I do this? Have tried the following two alternatives:-

z-index:-1 // on the image tag/card

and, 

z-index:100 // on the div above


Which doesn't work either. Neither does a combination of anything like this. How come?

Feb 18 in Others by Aditya
• 7,660 points
73 views

1 answer to this question.

0 votes
The z-index property only works on elements with a position value other than static for e.g. position: absolute or position: fixed). There is also a position:sticky; that is supported in Firefox, is prefixed in Safari, worked for a time in older versions of Chrome under a custom flag, and is under consideration by Microsoft to add to their Edge browser.
answered Feb 18 by Rahul
• 9,680 points

Related Questions In Others

0 votes
1 answer

JavaScript API does not work for Excel 2013?

Each method in the Office.js APIs is ...READ MORE

answered Sep 26 in Others by narikkadan
• 37,660 points
46 views
0 votes
2 answers

How does artificial neural network work?

Artificial Neural Networks is a part of ...READ MORE

answered Mar 8, 2019 in Others by SA
• 1,050 points
770 views
0 votes
1 answer

Dart_LoadScriptFromKernel: The binary program does not contain 'main'.

Hi@akhtar, You need to add the main() function ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,380 points
2,201 views
0 votes
0 answers

css3 drop shadow under another div, z-index not working

To make it appear as though one ...READ MORE

Aug 18 in CSS by Edureka
• 12,390 points
80 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
5,464 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,796 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
317 views
0 votes
1 answer

PhpMyAdmin not working on localhost

In order to answer your question, you ...READ MORE

answered Feb 8 in Others by Rahul
• 9,680 points
1,133 views
0 votes
1 answer

can somebody explain me what does "passing by value" and "Passing by reference" mean in C#?

To answer your question, “passing by value” ...READ MORE

answered Feb 10 in Others by Rahul
• 9,680 points
164 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP