Does anyone know how to center the DIV alignment that has a display set for the built-in unit?
I can’t set the display of the block because I have a background image that needs to be repeated and it needs to expand based on the content. It is inside the parent div, which is larger when it comes to width.
So that's all. Does anyone have a fix to center the alignment of the div with the display mounted on the inline unit?
And no, text-align: center; does not work, as well as margin: 0 auto;
jsFiddle:
http://jsfiddle.net/HkvzM/
Thank!
source
share