html - css absolute position with margin auto - Stack Overflow


/ Published in: CSS
Save to your folder(s)

absolute positioned element with margin auto


Copy this code and paste it in your HTML
  1. .divtagABS{
  2. width:300px;
  3. positon:absolute;
  4. left:0;
  5. right:0;
  6. margin:0 auto;
  7. }

URL: http://stackoverflow.com/questions/9998260/css-absolute-position-wont-work-with-margin-leftauto-margin-right-auto

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.