Edit How to place a link so that it ...">

Placing text in the line after the title

I have the following HTML:

<h3> HEADER </h3> <a href="link">Edit</a> 

How to place a link so that it appears immediately after the title? It should look like

 **HEADER** link 

I thought of a float: left link, but it still appeared on the line after HEADER. Thanks.

+6
source share
2 answers

Providing an inline header

 h3 { display: inline; } 
+8
source

You can also use

 h3 { display: inline-block: } 

to keep the height of the title element.

+2
source

Source: https://habr.com/ru/post/893338/


All Articles