开发者

Placing text inline after a Header

开发者 https://www.devze.com 2023-03-22 09:02 出处:网络
I have the following HTML: <h3> HEADER &l开发者_C百科t;/h3> <a href=\"link\">Edit</a>

I have the following HTML:

<h3> HEADER &l开发者_C百科t;/h3>
<a href="link">Edit</a>

How would I place the link so it comes directly after the Header? It should appear like --

**HEADER** link

I was thinking to float: left the link, but it was still appearing on the line after HEADER. Thank you.


By giving the header inline

h3 {
 display: inline;
}


Also can use

h3 {
 display: inline-block:
}

to keep height of header element.

0

精彩评论

暂无评论...
验证码 换一张
取 消