I have text with such shadow effects applied.
span.inner_text {
text-shadow: 5px 5px 5px red;
}
<span class="inner_text">It's a simple text</span>
Q1.
We used text-shadow for the parent element, as we needed to add shadows to this. Then the parent element text-shadow did not work. Why is this? And how can I nest shadows?
p {
text-shadow: 15px 15px 15px blue; /* blue shadow disappeared */
}
span.inner_text {
text-shadow: 12px 12px 5px red;
}
<p>
<span class="inner_text">It's a simple text</span>
</p>
Q2.
Next, I used drop-shadow for the parent element. Then the shadow of the p element disappeared. Why is this? And how can I nest shadows?
div {
filter: drop-shadow(30px 10px blue);
}
p.inner_text {
text-shadow: 5px 5px 5px red; /* red shadow disappeared */
}
<div>
<span class="inner_text">It's a simple text</span>
</div>