<div align="center"></div> Code (markup): That's the idea basically. Although you can use the same code in your css if you have any class/div applied to the div. just add this to the css: align:center; Code (markup): Remember, this will allow for Horizontal centering only.
I tried that but apparently it is not a valid attribute, I put "align:center;" in my CSS but that does not work. Are there any other attributes to try?
If the above code doesn't solve your problem, I'd suggest you post your html/css here so we can get a better understanding of what you're trying to accomplish.
I was being a bit of a noob, I had the div not set to the full page width so I needed to just make both margins auto. Thanks for the replies still though guys.
align="center" on a DIV?!? (not even valid HTML) align:center in CSS? (Not a valid CSS propery) I almost spit up my soda when I saw those - then: CENTER TAGS?!? Good lord, what is this 1997? Glad you found the CORRECT answer there gobbly - margin:0 auto;