Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Tuesday, June 19, 2018

Css Margin And Padding ?

CSS Padding - The CSS Padding properties are used to generate space around an element's content,inside of any defined borders.
There are properties for setting the padding for each side of an element (top, right, bottom, and left).

<div style ="padding:20px 10px 15px 25px;">
content here
</div>
-top padding is 20px
-right padding is 10px
-bottom padding is 15px
-left padding is 25px

CSS Margin -
The css margin properties are used to create space around elements,outside of any defined borders.
There are properties for setting the padding for each side of an element(to.right,bottom, and left).

<div style ="margin:20px 10px 15px 25px;">
content here
</div>
-top margin is 20px
-right margin is 10px
-bottom margin is 15px
-left margin is 25px

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...