CSS Properties: How to set the left initial property to its default value?
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to set the left initial property to its default value for an h1 element.
- The h1 elements have a common style with a solid border and a width of 10 pixels.
- An additional CSS class named initial is defined to apply the initial border style specifically to the left side.
- The h1 element with the class initial is used to demonstrate the left border with the initial style.
- The comment indicates that the visual effect of the initial border style depends on the specified border color.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
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