div {
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
/* You can also write above code in one line */
div{
padding: 50px 30px 50px 80px; /* top right bottom left; (moving clockwise) */
}
padding: 5px 10px 15px 20px; //top right bottom left
padding: 10px 20px;//top & bottom then left & right
padding-top: 5px; //just top padding
padding-right: 10px; //just right padding
padding-bottom: 15px; //just bottom padding
padding-left: 20px; //just left padding
padding-top: 25px;
padding-block: 40px 40px;
/*This works for padding topm and bottom*/
padding: 1%; // scales proportionally - on ALL sides
padding: 5px 10px 15px; //top then left & right then bottom
Code Example |
---|
Css :: apply style to second child div |
Css :: position sticky css |
Css :: equivalent zoom css |
Css :: animation reverse |
Css :: vscode set terminal letter spacing |
Css :: estilos de scroll css |
Css :: top left right bottom css shorthand |
Css :: all ipad Resolutio css |
Css :: min and max width media query |
Css :: how to evenly space icons in a div css |
Css :: show existing virtualenvs |
Css :: css center text |
Css :: position absolute align center |
Css :: text shadow |
Css :: timesheet template html css |
Css :: css strike through |
Css :: html how to use a background image fill not stretch |
Css :: input outline focus |
Css :: reset list html css |
Css :: soup css selector |
Css :: how to stretch picture with website css |
Css :: css transform |
Css :: quitar borde a un boton css |
Css :: css ie11 only |
Css :: Media Query smartphone only |
Css :: css image size adjust |
Css :: call circle icon in html css |
Css :: space between text css |
Css :: background color transparent opacity css |
Css :: cursor as image css |