Jump to content


Roar... CSS2 Help


2 replies to this topic

#1 GiggleStick69

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 02 January 2008 - 05:56 PM

Alright yall, I've got this little thing I made in a couple of minutes, excluding the header graphics, located at this place. I would like to move the header graphics to the center of the page, where (in this picture) side 1 (S1) is = to side 2 (S2), meaning that I want it to have the same margins. Or in other words, perfectly center.

I think it has something to do with padding, but I'm not sure. Also, I would also like the header at the top of the screen, but I think that can be solved with a simple:

#header_pos{

margin: 0;
padding: 0;

}


But I am very noobish with CSS still and don't know all of it's functions and secrets, so please tell me if there is something better I can do or easier!

Thanks!

#2 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 04 January 2008 - 02:23 PM

margin: 25px auto;

Will put it 25px top and auto the left and right which should center it but you need to make sure your width is less than 100%

#3 GiggleStick69

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 05 January 2008 - 09:49 PM

Thanks! I knew it had to do something with margins!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users