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.
精彩评论