- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Change the style of top border with CSS
The border-top-style property changes the style of top border.
Example
You can try to run the following property to change the style of the top border:
<html> <head> </head> <body> <p style = "border-width:2px; border-top-style:solid;"> Example showing top border </p> </body> </html>
- Related Articles
- Change the style of left border with CSS
- Change the style of bottom border with CSS
- Change the color of top border with CSS
- Change the style of the right border with CSS
- Usage of border-top-style property in CSS
- Set the style of the border with CSS
- How to set the style of the top border with JavaScript?
- Change the color of right border with CSS
- Change the color of the bottom border with CSS
- Change the color of the left border with CSS
- Change the width of the bottom border with CSS
- Set top-left corner border with CSS
- Set top-right corner border with CSS
- The border-style Property in CSS
- Set the style of the bottom border using CSS

Advertisements