PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant CSS styles?

HOTSPOT
You create a custom style by using CSS3.
A box with rounded corners must appear around text. The box must match the following illustration:

You need to add the CSS3 markup to your style.
How should you complete the relevant CSS styles? (To answer, select the appropriate option from each dropdown list in the answer area.)
Hot Area:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
* box-sizing
The box-sizing property is used to tell the browser what the sizing properties (width and height) should include.
Should they include the border-box or just the content-box which is the default value of the width and height
properties.
* border-radius
The border-radius property is a shorthand property for setting the four border-*-radius properties.
Example
Add rounded borders to a <div> element:
div {
border: 2px solid;
border-radius: 25px;
}
CSS3 box-sizing Property; CSS3 border-radius Property


Leave a Reply