Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Option 1:
Wrap the content in a div, give it a width and margin: auto;
Option 2.
If absolute, then you can use negative margin:
1. Set the width (eg 200px);
2.left: -50%;
3. And give a negative margin of half the width of this block (in this case, margin-left: -100px)
https://jsfiddle.net/005nsd85/ - negative margin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question