How can I make a DIV inside a DIV using 90% width?
1 answer
It works great, you can't see that since both have red background color, I changed it to green to see this http://jsfiddle.net/vm3b350r/ .
<div style="padding: 1rem 0;background-color:red">
<div style="width: 90%;margin: 0 auto 0 auto; background-color:green">
xxx
</div>
</div>
+11
source to share