- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How can I set the color, style, and width of lines in a single property with CSS?
The border property allows you to specify color, style, and width of lines in one property.
Example
You can try to run the following code to specify border property:
<html> <head> </head> <body> <p style = "border:3px solid green;"> This example is showing shorthand property for border. </p> </body> </html>
Advertisements