I have the following HTML:
<h3> HEADER </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.
The easiest way to use this type of formatting is to type your heading text followed by your body text, in a single paragraph. Make sure the entire paragraph is formatted as body text, then select just the text that will comprise the heading. Apply the level-three heading style to this selected text.
Just make your <h1> display:inline. This way, it will render in the normal text flow.
HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading.
By giving the header inline
h3 {
display: inline;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With