+ 2

Is there any easy way to what i am trying ? [Solved]

Any help is appreciated , ty. https://code.sololearn.com/WpDM2RrLPumX/?ref=app Edit: By "easy" I mean the same functionality i am getting but with less amount of css that can be used to do it and using only one div if possible.

18th Feb 2021, 8:47 PM
Abhay
Abhay - avatar
7 Réponses
+ 3
You can write this in a fewer code lines using box shadow property, such as the edited code below: https://code.sololearn.com/WlRay252nxnS/?ref=app
18th Feb 2021, 10:20 PM
Mhd AlHaj Houssein
Mhd AlHaj Houssein - avatar
+ 2
i dont know if this is any better but this is what i would do. https://code.sololearn.com/W9Kc7S7l1AdE/?ref=app
18th Feb 2021, 8:59 PM
Brain & Bones
Brain & Bones - avatar
+ 2
Clean<Code> thank you :)
18th Feb 2021, 10:33 PM
Abhay
Abhay - avatar
+ 2
Mirielle and Caleb thank you both for your time and sorry for not describing what exactly i was looking for.
18th Feb 2021, 10:40 PM
Abhay
Abhay - avatar
0
Caleb thank you but i don't want the div to move . Also thanks for showing it could be done using borders as well !
18th Feb 2021, 9:38 PM
Abhay
Abhay - avatar
0
Mirielle thank you but i am not really worried about that atleast for now . I just want to know if there is a way to do what i am doing but with less amount of css and if possible using only one div.
18th Feb 2021, 9:48 PM
Abhay
Abhay - avatar