How do you display a border like this:The top border = 10 pixelsThe bottom border = 5 pixelsThe left border = 20 pixelsThe right border = 1pixel?{$a->questionintifier} Yanıta.border-width:10px 1px 5px 20px;b.border-width:10px 5px 20px 1px; c.border-width:5px 20px 10px 1px;d.border-width:10px 20px 5px 1px;
Question
How do you display a border like this:The top border = 10 pixelsThe bottom border = 5 pixelsThe left border = 20 pixelsThe right border = 1pixel?{$a->questionintifier} Yanıta.border-width:10px 1px 5px 20px;b.border-width:10px 5px 20px 1px; c.border-width:5px 20px 10px 1px;d.border-width:10px 20px 5px 1px;
Solution 1
The correct answer is d.border-width:10px 20px 5px 1px;
In CSS, the border-width property is used to set the width of the four borders of an element. The values are set in the following order: top, right, bottom, left. So, for a top border of 10 pixels, a right border of 20 pixels, a bottom border of 5 pixels, and a left border of 1 pixel, you would use the following CSS declaration:
border-width: 10px 20px 5px 1px;
Solution 2
The correct answer is:
b.border-width:10px 1px 5px 20px;
Explanation:
In CSS, the border-width property can have from one to four values. Here is how they work:
- Four values - border-width: top right bottom left;
- Three values - border-width: top right/left bottom;
- Two values - border-width: top/bottom right/left;
- One value - border-width: top/bottom/right/left;
So, in your case, you want:
- Top border =
Similar Questions
Use the ______ attribute to configure the width of a table border.{$a->questionintifier} Yanıta.borderb.tableborderc.widthd.none of the above
Question 7What is the border-box width for the following CSS rule?23456789101div { width: 10px; padding-left: 5px; padding-right: 5px; border-width: 5px; margin-left: 10px; margin-right: 10px;}
Choose the best answer below to the following question: Is the following CSS code valid?table { border: 2px #000000 solid; border-spacing: 0;}{$a->questionintifier} Yanıta.No, there is no border-spacing property.b.No, 0is not a valid value for the border-spacing property.c.No, there is no border property.d.Yes
To configure the table cells to share a common border and eliminate the default space between table cells configure ___________.{$a->questionintifier} Yanıta.border: none;b.border-spacing: none;c.border-spacing: 0;d.border-spacing: collapse;
The box model consists of a content area surrounded by:{$a->questionintifier} Yanıta.a borderb.spacing, border and marginc.border and margind.padding, border and margin
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.