How would you apply a border only to the top side of an element?
- border-top:
- border: top
- border: top-side
- top-border:
To apply a border only to the top side of an element in CSS, use the border-top property followed by the desired border style, width, and color.
Loading...
Related Quiz
- How do you include a mixin in your SCSS code?
- How would you blend two overlapping elements using the mix-blend-mode property?
- What is the main purpose of using vendor prefixes in CSS?
- How does SMACSS (Scalable and Modular Architecture for CSS) categorize its styles?
- What does the ::before pseudo-element do in CSS?