...

View Full Version : Header Align Issue



neonflorida
11-24-2008, 09:23 PM
Hi.

Sorry if this has been asked a million times.

I am using CSS to make a layout and all is fine so far. However I cant seem to align my header.

here is my code.

#header{
width: 618px;
height: 100px;
background-color:#FFFFFF;
border-size: 4px;
border-color:#000000;
border-style: solid;
}

I had tried several methods to align including the float attribute which works fine for right and left. I tried absolute for center but no luck. I also tried just " position: center; ' with no luck.
Only way I found was to use the <center> tags over my <div id> This worked but I want my style sheet to align my header.

I cant see where I am going wrong. Hope somebody here can help.

Thank you

Excavator
11-24-2008, 09:27 PM
Hello neonflorida,
Are you trying to center it? Try this:

#header{
margin: 0 auto;
width: 618px;
height: 100px;
background: #FFFFFF;
border: 4px solid #000000;}

neonflorida
11-24-2008, 09:36 PM
Thank you very much,, it worked. :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum