margin-top

margin-top
CSS margin-top Property
The CSS margin-top property is used to create marginal space on the top side of elements.
CSS CODE EXAMPLE
<style type="text/css">
#myDiv {
    margin-top: 50px;
}
.divClass { background:#DFEFFF; border:#5BADFF 1px solid; padding:10px; }
</style>
<div class="divClass">div content ...</div>
<div class="divClass" id="myDiv">div content ...</div>
 
div content ...
div content ...

Possible Values:

pixel amount •• percentage

Related Posts :

  • elevation elevation CSS elevation Property The CSS elevation property is part of CSS aural… Read More...
  • empty-cells empty-cells CSS empty-cells Property The CSS empty-cells property is used to spe… Read More...
  • cue cue CSS cue Property The CSS cue-after , cue-before and cue … Read More...
  • direction direction CSS direction Property The CSS direction property is used to specify t… Read More...
  • cursor cursor CSS cursor Property The CSS cursor property is used to change the cursor … Read More...

0 Response to "margin-top"

Post a Comment