A
A
Anatoly2018-03-07 00:29:03
css
Anatoly, 2018-03-07 00:29:03

How to compose css?

Tell a beginner how to make such a frame for text without a plugin?
5a9f08110c4a7672289168.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kravenzl, 2018-03-07
@Tolyan86

That's about what you need https://codepen.io/anon/pen/YemNLX
There, play around with styles to make it look more like

S
Stalker_RED, 2018-03-07
@Stalker_RED

Below is a pseudo-element with a shadow, on top of it is a semi-circle gradient.

.foo {
  position: relative;
  border: solid 1px gray;

  width: 50%;
  padding: .5em;
  background: white;
}
.foo:after {
  content: '';
  position: absolute;
  left: 2%; right: 2%; bottom: -21px;
  height: 20px;
  background: radial-gradient(circle at bottom, white 65%,transparent 100%);
  z-index: -1;
}
.foo:before {
  content: '';
  position: absolute;
  left: 2%; right: 2%; bottom: 0px;
  height: 10px;
  box-shadow: 0px 0px 25px 5px rgba(0,0,0,0.85);
  z-index: -2;
}

https://jsfiddle.net/vgj0mp99/
too lazy to pick up the exact numbers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question