+ 5

Help me with some css issues

I was working on a profile card UI and I don't know what's the problem but the box shadow is not appearing around the footer section... https://code.sololearn.com/W2f23TRTwqOm/?ref=app

28th May 2018, 5:57 PM
Ayush
Ayush - avatar
9 Respostas
+ 3
Rahul Toni Isotalo Chandan Kumar Mandal and as usual the "overflow:hidden" property worked for me... no need to add separate border radius to header and footer now...
28th May 2018, 6:54 PM
Ayush
Ayush - avatar
+ 14
If you change .card border radius to 100px you can see how its childrens are covering it. I agree with Rahul
28th May 2018, 6:43 PM
Toni Isotalo
Toni Isotalo - avatar
+ 11
I have to admin you have really good designs. I think the blur radius is too small. Change the last value. Change it first to 10px so you can see that it's working box-shadow: 0 0 10px 10px rgba(0,0,0,0.2);
28th May 2018, 6:18 PM
Toni Isotalo
Toni Isotalo - avatar
+ 4
@ Ayush Gupta, To apply border-radius, you should use it on child elements rather than the parent element. .card-head, .card-footer { border-radius: 0 0 5px 5px; } Edit: The parent element is under its child element. So, even if border-radius is working, it will have no effect on the view, as it is hidden below!
28th May 2018, 6:31 PM
777
777 - avatar
+ 3
there's still a problem😅 the border radius is not working
28th May 2018, 6:23 PM
Ayush
Ayush - avatar
+ 3
Try using browser tags.It is working with browser tags. -webkit-border-radius
28th May 2018, 6:30 PM
Chandan Kumar Mandal
Chandan Kumar Mandal - avatar
+ 3
Rahul that way will work good. Actually the border radius is working but we cannot see it due to the presence of header and footer I was wondering why is this happening and is there any other way like overflow hidden???
28th May 2018, 6:36 PM
Ayush
Ayush - avatar
+ 3
Toni Isotalo your opinion for fixing that border radius???
28th May 2018, 6:39 PM
Ayush
Ayush - avatar
+ 3
You have to implement it to the each child elements as rahul said above. and you should use browser tags it may be handy if users browser is in not updated ..
28th May 2018, 6:42 PM
Chandan Kumar Mandal
Chandan Kumar Mandal - avatar