CSS Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - CSS

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?


 

 

 

 



A


Solution:-

The width of an element's four borders sets the border-width property. This property can contain from one to four values.

<style>
   border-width: medium thin 5px thick;
</style>

The top border is medium.
The right border is thin.
The bottom border is 5px.
The left border is thick.

Another example is border-width:10px 1px 5px 20px;




Next 5 multiple choice(s)

1

Which property is used to change the left margin of an element?

2

When using the padding property; are you allowed to use negative values?

3

How do you make a list that lists its items with squares?

4

How do you select an element with id "demo"?

5

How do you select elements with the class name "test"?

Comments