0

hya im working on a template and i have the body and a content box and i want to align the content box to center of body how can i do this in css

ty jan x

2
Contributors
3
Replies
17
Views
2 Years
Discussion Span
Last Post by pixelsoul
0

ive tried that but nothing as changed see pic included the contain in the middle is what im trying to move x

Attachments Image_1.png 35.14 KB
0

Ah, thought you meant you wanted someone vertically and horizontally centered on the body, like a login box.

You should be able just use margin:0 auto; to horizontally align it. If that's not working, then it's probably another style conflicting with it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.