View Full Version : Header Align Issue

11-24-2008, 10:23 PM

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.

width: 618px;
height: 100px;
border-size: 4px;
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

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

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

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