Bhawandeep Singla Bhawandeep Singla - 3 years ago 131
CSS Question

Padding not visible inside div block?

Please check the jsFiddle link and tell why padding is not visible inside div container?

body {
background-color: #B8C4BB;

.container {
text-align: center;

.section_two {
border: 2px solid red;
padding: 10 px;

<div class="container">
<div class="section">
Change the value of the color property to see how it changes the text color of this element.
<div class="section_two">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt, alias, aliquid fugiat dolorem repudiandae quidem. Molestiae illum pariatur officia voluptate cumque. Necessitatibus earum consequuntur explicabo minus ratione mollitia illum nam.

Answer Source

use padding property without spaces in between like:

padding: 10px;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download