I am currently working on the following code:
<h1><span>Test Heading This is the text that I want to display on the right side. This is the text that I want to display on the right side. This is the text that I want</span></h1>
<div>This is the text that I want to appear on the right side of the heading and above the blue base line. This is the text that I want to appear on the right side of the heading and above the blue base line.</div>
Below is the corresponding CSS style:
.bb {
border-bottom: 1px solid #999;
padding-bottom: 10px;
background-color: pink;
overflow: hidden;
}
h1 {
font-size: 1.3em;
font-family: calibri, arial;
margin-bottom: 5px;
float: left;
}
h1 span {
color: #fff;
background-color: #446688;
padding: 1px 5px 3px 5px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
My question is whether there is a way to have the div on the same line as the h1 (spanning multiple lines).
For reference, here is the link to the code on JSFiddle: https://jsfiddle.net/tarjoadi/w5q6qqLv/
This is the desired outcome I am aiming for: screenshot
Your assistance in this matter would be greatly appreciated.
Thank you