Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

H heading + some other text on the same line

I am trying to have a heading and then some less important text on the same line:

Skill Ratings

(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.

like image 716
amphibient Avatar asked Mar 21 '13 20:03

amphibient


People also ask

How do you put two headers on the same line in Word?

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.

How do I display two tags on the same line?

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.


1 Answers

HTML

<h1>Skill Ratings <span>(scale of 5)</span></h1>

CSS

h1 span { font-size:16px; }
like image 189
Lowkase Avatar answered Oct 15 '22 03:10

Lowkase