Jump to content

header title not align to center


Recommended Posts

hi all,


i am new to developing,


i am trying to develop a site with the help of googling.


In my header title, its not aligning to center even if i give the property text-align:center

#header {	clear:both;	height:110px;	background-color:#fff;	}#site_title { 	float: left; 		margin: 25px 0 0 405px; 	}#site_title h2 { 	margin: 0; 	padding: 0;    color:#000;			}

waiting for the valuable inputs

Link to comment
Share on other sites

Since we have no html to work with, i'll just guess that the header is in the floated element, this element will shrink to content forcing it left.

<div id="header"><!--starts of header-->	<div id="site_title">	<h2>'IMPROVING HSE AT HOME'</h2>		  <img class="image_wrapper image_fr" src="images/Logo_lockup.jpg" alt="image"  /><br><br><br>	</div></div> <!-- end of header -->
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...