
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Set the Right Margin of an Element with CSS
The margin-right property is used to set the right margin of an element. It can have a value in length, % or auto. You can try to run the following code to set the right margin
Example
<html> <head> </head> <body> <p style = "margin-right: 10px; border:2px solid red;"> Cricket crazy nation India! </p> <p style = "margin-right: 10%; border:2px solid green;"> Cricket crazy nation Australia! </p> </body> </html>
Advertisements