English

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

Advertisements
Advertisements

Question

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
Code Writing
Short Answer
Advertisements

Solution

We utilise the border-width property to show the specified border, writing the values in the following order: top, right, bottom, and left. As a result, the regulation will be expressed as follows:

selector { border-width : 10px 1px 5px 20px ; }
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assignment [Page 275]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assignment | Q 2. | Page 275
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×