I am mainly a designer, but I am making a mock html document using some basic html and css to demonstrate the realizability of my design. Below is the custom shape i have designed on figma.
Now, I am barely familiar with html or css, but by doing some rudimentary googling i was able to create the shape i wanted in css. Below are the code snippets of the html and css i have used to realize the result seen in the image below the code.
/* Html Part */
<body>
<div id="topLabel">
<div id="topLabelRectangle"></div>
<div id="topLabelCircle"></div>
</div>
</body>
/*CSS Part*/
#topLabelRectangle {
position: absolute;
left: 0%;
right: 0%;
top: 0%;
bottom: 90%;
background: #FFFFFF;
border-radius: 0px 0px 50px 50px;
//box-shadow: 0px 10px 10px rgba(112, 112, 112, 0.25);
}
#topLabelCircle {
position: absolute;
left: 47%;
right: 47%;
top: 4.5%;
bottom: 83%;
background: #FFFFFF;
//box-shadow: 0px 10px 10px rgba(112, 112, 112, 0.25);
border-radius: 250px;
}
The result I got from the code above (without the dropshadow property)
Now, when I tried adding the shadow property, it looked as shown below, (which is not the expected result i was expecting)
Result I obtained with shadows applied separately
In order to tackle this I tried the following
- I removed the shadow property from the individual elements.
- Added the property to the parent of both the elements as shown below
#topLabel {
box-shadow: 0px 10px 10px rgba(112, 112, 112, 0.25);
}
When i did so, the shadow property wasn't applied to any element and looked like the one before shadow was added.
I presume, my lack of knowledge on the subject matter is the reason behind my incapability to find a solution for this using google. Please, guide me in the matter.