CBSE Class 10 Computer Applications
Question 2 of 37
Cascading Style Sheets (CSS) — Question 2
Back to all questions 2
Question Question 2
How do you display a border like this :
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel
To display the given border, we use the border-width property and write the values in the order — top, right, bottom, left. Thus, the rule will be written as follows:
selector { border-width : 10px 1px 5px 20px ; }