Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Absolute Horizontal And Vertical Center In CSS

make money online
ivan Offline referral

Posts: 717
Joined: Jul 2013
Reputation: 6

Senior Member
I am trying to center an image and I am looking for the position absolute center.
I know how to center horizontally and vertically with css but how to combine them together?

margin-top: 50%;
margin-bottom: 50%;
margin-left: 50%;
margin-right: 50%;
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

Posting Freak
this should get you started
.Absolute-Center {
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
antony Offline referral

Posts: 478
Joined: Jul 2013
Reputation: 5

Senior Member
Thanks chod works great. I was just about to ask the same question.
hadee41 Offline referral

Posts: 14
Joined: Mar 2014
Reputation: 0

Junior Member
Good sharing. I also use the horizontal.

Google this topic

User(s) browsing this thread: 1 Guest(s)