Div Is Shown In Wrong Position
I have such code:
Copy
Solution 2:
In your final div you have text-aling: center
instead of text-align: center
.
Solution 3:
Add margin: 0 auto; to that marked div.
Solution 4:
You have set text-aling:center
when it should be text-align:center
. Fixing it you will get image positioned in center of a div. To center a div itself, add margin: 0 auto
to that div
Demo: http://jsfiddle.net/8p7A2/1/ with both fixed text-align and margin added.
Post a Comment for "Div Is Shown In Wrong Position"