- 2codepen.io/Geyan/pen/GqyzdE?editors=110 like this? - user33274
- 2codepen.io/Geyan/pen/qNpgrb?editors=110 the second option is user33274
- 3Google for the interest of " css triangle online " - you can find a bunch of online generators, where you can peek at ways to create such pieces. In particular, here's what you need: tyts . - Roman Grinyov
|
1 answer
.message { position: relative; margin: 30px auto; padding: 10px; width: 80%; min-height: 10px; font-family: sans-serif; background: rgb(242, 251, 255); border: 2px solid rgb(220, 223, 223); } .message:before { content: ''; position: absolute; top: -20px; left: 15px; border: 10px solid transparent; border-bottom: 10px solid rgb(220, 223, 223); border-left: 10px solid rgb(220, 223, 223); z-index: -1; } .message:after { content: ''; position: absolute; top: -15px; left: 17px; border: 10px solid transparent; border-bottom: 10px solid rgb(242, 251, 255); border-left: 10px solid rgb(242, 251, 255); z-index: 1; }
<div class="message">Привет, Верунь! Ну и т.д.</div>
|