M
M
Michael Nepomniachtchi2018-10-03 23:45:49
css
Michael Nepomniachtchi, 2018-10-03 23:45:49

How to make a frame with an icon in css?

Can you please tell me how to make a frame with an icon as a decoration.
Googled only how to make the whole frame from the icon, but it is needed only as a fragment with solid lines around.
5bb52a2a3ecc7405083058.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
profesor08, 2018-10-04
@wp-admin

Frame the block on all sides except the top. Pseudo-elements make two pieces of the frame. Place them on top and give them a size. Inside the block, put an element with an icon and place it on top absolute.
https://codepen.io/Profesor08/pen/BqKjQV

N
Nikita-Fast, 2018-10-04
@Nikita-Fast

https://codepen.io/topicstarter/pen/zmqBJQ like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question