Search
 
SCRIPT & CODE EXAMPLE
 

CSS

padding top

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) */
}
Comment

css padding

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
Comment

css top padding

padding-top: 25px;
Comment

css padding syntax

/* Apply to all four sides */
padding: 1em;

/* vertical | horizontal */
padding: 5% 10%;

/* top | horizontal | bottom */
padding: 1em 2em 2em;

/* top | right | bottom | left */
padding: 5px 1em 0 2em;

/* Global values */
padding: inherit;
padding: initial;
padding: revert;
padding: revert-layer;
padding: unset;
Comment

padding top bottom

padding-block: 40px 40px;
/*This works for padding topm and bottom*/
Comment

css padding

padding: 1%;  // scales proportionally - on ALL sides
Comment

css padding

padding: 5px 10px 15px; //top then left & right then bottom
Comment

PREVIOUS NEXT
Code Example
Css :: flexbox align last item right 
Css :: how to change image based on screen size 
Css :: #f2f2f2 in rgba 
Css :: css dropdown menu with scrollbar 
Css :: cssnano 
Css :: css animation top goes back to start 
Css :: curve bottom of square css 
Css :: css align-items center 
Css :: box model css 
Css :: jquery hide scrollbar but allow scrolling 
Css :: maxheight media query 
Css :: css get screen height 
Css :: css for safari only 
Css :: flex direction tailwind 
Css :: getting two scroll bars 
Css :: linear gradient border 
Css :: object-position 
Css :: zoom image inside div and move 
Css :: border css shorthand 
Css :: DevTools failed to load SourceMap: Could not load content for bootstrap.min.css.map 
Css :: outline bottom css 
Css :: css filter img color etc 
Css :: maximum length for input box 
Css :: z index 
Css :: import global variables scss angular 
Css :: how to horizontally center header at the top of page with flexbox css 
Css :: style scrollbar table 
Css :: css animation shorthand 
Css :: remove outline on button click 
Css :: css move element to the right 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =