You can use some flexbox magic:
h1 {
display: flex;
justify-content: space-between;
}
<h1>
<span>Align me left</span>
<a href="">align me right</a>
</h1>
More Related Contents:
- Text-align class for inside a table
- What are the steps to make a HTML design responsive? [closed]
- Can’t scroll HTML page down to see full content
- How do I vertically center text with CSS? [duplicate]
- Fill the remaining height or width in a flex container
- Why are my CSS3 media queries not working on mobile devices?
- How does the “position: sticky;” property work?
- A Space between Inline-Block List Items [duplicate]
- CSS vertical alignment of inline/inline-block elements
- Center a DIV horizontally and vertically [duplicate]
- How to remove the space between inline/inline-block elements?
- How do I install a custom font on an HTML site
- What’s a 3D doing in this HTML?
- Css height in percent not working [duplicate]
- Circular percent progress bar
- CSS side by side div’s auto equal widths
- Setting table column width
- How to force table cell content to wrap?
- Inline style to act as :hover in CSS
- How to make a sticky footer using flexbox in IE11?
- Removing space at the top left and right of div
- Prevent scroll-bar from adding-up to the Width of page on Chrome
- Making text background transparent but not text itself
- How to display HTML as inline element?
- CSS calc not working in Safari and fallback
- Stylesheet taken-over/replaced by Chinese characters
- Is there a CSS not equals selector?
- How to get a div to resize its height to fit container?
- Table vertical header?
- CSS/HTML: How do I change the color of the check mark within the checkbox input? [duplicate]