
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Specify the right padding of an element with CSS
The padding-right specifies the right padding of an element. This can take a value in terms of length of %.
Example
<html> <head> </head> <body> <p style = "padding-right: 20px; border:2px solid blue;"> This is demo content. </p> <p style = "padding-right: 20%; border:2px solid blue;"> This is another demo content/ </p> </body> </html>
- Related Questions & Answers
- Specify the left padding of an element with CSS
- Specify the bottom padding of an element with CSS
- Specify the top padding of an element with CSS
- How to set the right padding of an element with JavaScript?
- CSS padding-right property
- Set the right margin of an element with CSS
- Set the left, right, top and bottom padding of an element
- Animate CSS padding-right property
- How to set the padding of an element with JavaScript?
- How to set the bottom padding of an element with JavaScript?
- How to set the left padding of an element with JavaScript?
- How to set the top padding of an element with JavaScript?
- How to specify the number of columns an element should be divided into with CSS
- Change the padding of a button with CSS
- Specify position of the background images with CSS
Advertisements