Answers for "text in the same line html"

0

text in the same line html

<!DOCTYPE html>
<html>
  <head>
    <style>
      .my-header h2 { 
 		 display: inline;
		}
		.my-header span { 
  		 float: right;
		}
    </style>
  </head>
  <body>
    <div class="my-header">
    <h2>Title</h2>
    <span>Status</span>
	</div>
	<div style="clear:both"></div>
  </body>
</html>
Posted by: Guest on July-12-2021

Code answers related to "text in the same line html"

Browse Popular Code Answers by Language