CSS Properties: How to set the initial property to the default value of border image width?
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to set the border-image-width property to its default value using the keyword "initial".
- The element with id "img1" is styled to have a transparent solid border with 15px width and 15px padding.
- It also uses a border image sourced from "https://www.w3resource.com/w3r_images/border.png", with the border image slices set to 30 and the border image repeated and rounded.
- border-image-width: initial; sets the width of the border image slice to its initial value, which is typically "auto".
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | No |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics