I am trying to have a heading and then some less important text on the same line:
(scale of 5)
but I really want (scale of 5)
to be in the same line as well as that Skill Ratings
be wrapped in the <h>
tags for document structure semantics.
I am tight on real estate so I don't want another line, (scale of 5)
will be linked to a CSS style.
Is this possible? If not, I will chose to not have Skill Ratings
as a heading but would prefer that it be.
Press Alt + Shift + O , and type the combination of heading text as you want it to appear in the TOC (e.g., Chapter One – The Journey Begins). The level should automatically be set to 1. Click Mark.
To display multiple div tags in the same line, we can use the float property in CSS styles. The float property takes left, right,none(default value) and inherit as values. The value left indicates the div tag will be made to float on the left and right to float the div tag to the right.
HTML
<h1>Skill Ratings <span>(scale of 5)</span></h1>
CSS
h1 span { font-size:16px; }
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