Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: Make Div Central  (Read 4436 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