T
T
TechNOIR2018-03-12 13:40:38
css
TechNOIR, 2018-03-12 13:40:38

CSS+HTML. How to make a triangle next to text?

Good afternoon.
I want to make a triangle next to the text. In one line. The word and next to the triangle.
I do a triangle like this:

width: 0;
height: 0;
border-style: solid;
border-width: 0 5px 8.7px 5px;
border-color: transparent transparent #007bff transparent;

But I don’t understand how to put them next to each other in HTML ... Tell me please

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ink, 2018-03-12
@TechNOIR

https://codepen.io/topicstarter/pen/WzvmVb

A
Artem Spiridonov, 2018-03-12
@customtema

Absolute positioning, or spanning with line-height

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question