- 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
Set the width of image border with CSS
The border property is used to set the width of an image border. This property can have a value in length or in %. A width of zero pixels means no border.
Example
You can try to run the following code to set the width of image border:
<html> <head> </head> <body> <img style = "border:0px;" src = "/css/images/logo.png" /> <br /> <img style = "border:4px dashed green;" src = "/css/images/logo.png" /> </body> </html>
- Related Articles
- Set the border image width with CSS
- Set border width with CSS
- CSS border-image-width
- Set the width of an image with CSS
- Set the width of the left border using CSS
- Set image as a border for elements with CSS
- Set the height and width of an image using percent with CSS
- Change the width of the bottom border with CSS
- Set the border image as rounded, repeated and stretched with CSS
- Slice the border image with CSS
- Set the style of the border with CSS
- Set the color of the border with CSS
- Set the width of the outline with CSS
- How to set the width of the right border with JavaScript?
- How to set the width of the left border with JavaScript?

Advertisements