how can I center my links like this? They all are centered inside a div, but they begin from the same distance.
div
i am link 1 i am a longer link than
If you need shrinkwrapped centering, apply inline-block on the things you want centered. Then text-align:center; on the parent.
inline-block
text-align:center;
You'll need to probably have a workaround for IE, but as you haven't posted code I won't go into that.