CSS Properties: How to specify a 3D left ridged border?
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to specify a 3D left ridged border 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 ridge is defined to apply the ridged border style specifically to the left side.
- The h1 element with the class ridge is used to demonstrate the ridged left border.
- The comment indicates that the visual effect of the ridged border 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.