HTML - LEFT RIGHT CENTER

Do you have a scenario where you need to have an H2 tag with other complimentary information on one line?
	<div id="header">
		<p style="float: left; width: 34%; text-align: left;">Text Left</p>
		<h2 style="float: left; width: 33%; text-align: center;">Text Middle</h2>
		<p style="float: left; width: 33%; text-align: right;">Right Text</p>
	</div>

Result




html css float


Back To Top
© 1998 - 2024 psacake.com
Version 7.21 | Advertise on this site