Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Make Div Central  (Read 4154 times)

wilk06

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Make Div Central
« on: August 02, 2007, 12:28:34 PM »

Just a quick question that will no doubt be easy for any of you guys to answer:

How to you make a DIV central on the page?  IE - equal distance from top and bottom and from side to side, even when being resized.

Thanks,
Wilko
Logged

centered

  • Guest
Make Div Central
« Reply #1 on: August 02, 2007, 12:35:42 PM »

margin: 0 auto;
widht: addYours;
Logged

wilk06

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
Make Div Central
« Reply #2 on: August 02, 2007, 12:45:31 PM »

Cheers,
Works a treat

Wilko
Logged

centered

  • Guest
Make Div Central
« Reply #3 on: August 02, 2007, 12:45:57 PM »

Np
Logged