开发者

Placing text inline after a Header

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜