<divclass="my-element">
This element has padding and margin.
</div>
CSS
.my-element {
padding:10px;
margin:20px;
}
Fixed Positioning
HTML
<divclass="sidebar">
This element's position is fixed and is stacked on the left side, with a width of 30%.
</div><divclass="main-content">
This element's position is fixed and is stacked on the right side, with a width of 70%.
</div>