PDA

View Full Version : Centreing Horizontal Spry menu


prcole18
02-03-2009, 09:47 AM
Hi, i'm having real trouble trying to centre my Horizontal spry menu bar on my page. Been trying everything in css properties.

However the easist way I have just sussed to do it is by placing it in an
APdiv & just moving it where I want.

Could someone tell me is this a good way to do it or is there another way i should be doing it by actually centreing it?

Thanks in advance

domedia
02-03-2009, 06:24 PM
Another way than what?
CSS centering is an easy process so you're doing something wrong.

prcole18
02-03-2009, 09:31 PM
At the minute I am placing it in a APdiv & moving it where I want to. I just couldn't figure out a way to centre it without putting it in that.

I could float it left or right but not centre

domedia
02-03-2009, 10:53 PM
AP = absolutely positioned. Centering is a relative position.
Floating will align it to either left or right from the content.
This should give you the basics:
http://www.dreamweaverclub.com/css-center-content.php