Computer Applications

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

CSS

14 Likes

Answer

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 ; }

Answered By

5 Likes


Related Questions