Home | Computer Science

<
CSS Padding

Defination

Adding is used to create space around an element's content, inside of any defined borders.


CSS Padding Syntax of Border Radius is
h1 {
padding: ;
}
It can be apply on any thhing for e.g.
Program
INPUT

<html> <head> <style> div { border: 1px solid black; background-color: lightblue; padding-top: 50px; padding-right: 30px; padding-bottom: 50px; padding-left: 80px; } </style> >/head> <body> <div>This div element has a top padding of 50px, a right padding of 30px, a bottom padding of 50px, and a left padding of 80px.</div> </body> </html>

OUTPUT