CSS Newbie Needs Adive

MartyBoi

New Member
Thank you for your interest in respect to my New Thread....

I am wanting to create an I don't know, lets say ' Empty Header ' that is at the top of my index.php file. An empty space where I can insert a logo and other images and so on.

Now, do I treat this matter as if i was creating a <div id="header"></div> ? Something like this example?

<!-- XHTML -->
<div id=" header"></div>

/* CSS Rules */

#header {
background-color: #FFF;
width: 800px;
height: 150px;
margin: 0 auto; <!-- Position to Top and Center -->
padding: 0px;
}

And please forgive me if my html & css langauge syntax is wrong. I'm still kinda new to the scene.

Also, must one nest all Website substance in a main wrapper?

Thank you:)
 

ronaldroe

Super Moderator
Staff member
Go with position:relative instead.

You don't have to use a wrapper, but it makes your life a little easier if you're trying to center or otherwise position the entire page.
 
Top