CSS Properties: How to specify a medium bottom border?
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to specify a medium width for the bottom border of a <div> element.
- The CSS style block applies styling to all <div> elements in the document.
- border-style:solid; specifies a solid border style for the <div> element.
- border-bottom-width:medium; sets the width of the bottom border to medium.
- As a result, all <div> elements in the document will have a solid border with a medium width at the bottom.
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.