CSS 3 Test Fiverr 100%

Consider the following code snippet:
<div id="sectors">
    <div id="A" class="A"></div>
    <div id="B" class="B"></div>
    <div id="C" class="C"></div>
    <div id="D" class="D"></div>
    <div id="E" class="E"></div>
</div>
With these style rules:
<style>
#sectors > div {
    float: left;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 16px;
 background-color:red; color: white;
 text-align: center;
}
#sectors > div::after {
    content: attr(id) '-Block';
}
#sectors > div.changecolor {
    background-color: blue;
}
</style>
Which of the following code snippets when inserted into CSS will change the A and B div’s color from red to blue?

• In style rule add this code “#sectors > div:not(.C):not(.D):not(.E) {background-color: blue;}
• In style rule add this code “#sectors > div:not(.C, .D, .E) {background-color: blue;}”
• Both A and B
• None of the above

Which statement is correct given the following?
box-shadow:30px 20px 10px 5px black;

• The shadow will be spread out to 30px top, 20px right, 10px bottom, 5px left.
• The position of the horizontal black shadow is 30px and the position of the vertical black shadow is 20px and blur distance is 10px and size of shadow is 5px.
• The position of the vertical black shadow is 30px and the position of the horizontal black shadow is 20px and size of shadow is 10px and blur distance is 5px.
• The shadow will be spread out to 30px top and bottom, 20px left and right with 10px blur distance, 5px shadow size.

 Which of the following styles is not valid for an image?

• img { float= left }
• img { float: left here }
• img { background: "black" }
• img { border-width: 10 }
• All of the above

 Which of the following will decrease 50px from a DIV element whose width is 100%?

• width: calc(100% - 50px);
• width: reduce(100% - 50px);
• width: decrease(100% - 50px);
• width: 100% - 50px;

 Which of the following properties specifies the minimum number of lines of a paragraph that must be left at the bottom of a page?

• orphans
• widows
• bottom
• overflow
• None of these

 What will happen if the cursor property value is set to none?

• The default cursor will be displayed.
• No cursor will be displayed
• A pointer cursor will be displayed.
• A text cursor will be displayed.

 For the clear property, which of the following values is not valid?
• none
• left
• right
• top

 Which of the following filters does SVG support?

• SVG supports only CSS filters.
• SVG supports CSS filters as well as 'filter' property of SVG
• SVG supports only 'filter' property of SVG
• SVG does not supports any filters

 Which of the following styles is valid?

• order: "none";
• order= "none";
• order: none;
• order= none;
• None of these.

 Which one of the following is appropriate to mirror/flip text by using CSS3?

• .mirror_text{ -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; }
• .mirror_text{ Box-reflect; 20px right; }
• .mirror_text{ Box-reflect; 20px left; }
• .mirror_text{ -moz-transform: rotate(-180deg); -webkit-transform: rotate(-180deg); transform: rotate(-180deg); }

Consider the following problem:
When trying to apply a CSS3 style to a label of a checked radio button like this:
<style>
label:checked { font-weight: bold; }
</style>
<input type="radio" id="rad" name="radio"/>
<label for="rad">A Label</label>
This does not produce the desired effect.
Which of the following snippets will correct issue?

• It is not possible to style.
• <input id="rad" type="radio" name="rad"><label "rad">A Label</label>
• input[type="radio"]:checked+label{ font-weight: bold; }
• input[type="radio"]:checked@label{ font-weight: bold; }

 Given that one div element needs to be hidden and on active state needs to be displayed, what will be the output of the following code?
div {
    display: none;
    -webkit-transition: opacity 1s ease-out;
    opacity: 0;
}
div.active {
    opacity: 1;
    display: block;
}

• On active state the element is displayed.
• On active state the element's opacity is changed to 1.
• On active state the element's opacity is changed to 0.
• Nothing will be shown.

 Which of the following will create a triangle effect using pure CSS3 on a white background, without making use of background images?

• It is not possible to do so.
• border-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
• background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
• background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 1px; width: 10px; height: 10px;

 Can a percentage value be given in a ruby-align property?

• Yes
• No

Consider the following font definition:
font-weight:normal
What is the other way of getting the same result?

• font-weight:100
• font-weight:900
• font-weight:400
• font-weight:700

Consider the following code:
div[class^="stronger"] { }
{em
}
Which of the following statements is true?

• It applies the rule only on divs who belong to a class that begins with "stronger".
• It applies the rule only on divs of class "stronger".  можно попробовать- пробовал не удачно!!
• It applies the rule only on divs who belong to a class which end with "stronger".
• It applies the rule only on divs who belong to a class which does not contain "stronger" in its name.

 What will be the output of the following code?
<style>
.foo {
    width:10
   -webkit-gradient(linear, 0 0, 0 100%, from(black), to(red)) 1 100%;
    -webkit-border-image:
        -webkit-linear-gradient(black, red) 1 100%;
    -o-border-image:
             -o-linear-gradient(black, red)) 1 100%;
    -moz-border-image:
           -moz-linear-gradient(black, red) 1 100%;    
}
</style>
<div  class="foo">Lorem</div>

• The text "Lorem" will be colored black-red.
• The div element will be colored black-red.
• The border of div element will be colored black-red.
• None of these.

Which of the following is not a valid value for the font-smooth property?

• auto
• never
• always
• normal
• length

Which of the following is not a valid page break?

• page-break-inside
• page-break-outside
• page-break-before
• page-break-after
• None of these

The min-width property cannot be applied to the following element:

• button
• span
• table row

Given the following problem:
A drop shadow needs to appear only at the bottom, and no images should be used.
Consider the following code:
-moz-box-shadow: 0px 4px 4px #000;
-webkit-box-shadow: 0px 4px 4px #000;
box-shadow-bottom: 5px #000;
However, this produces shadows on the rest of the element.
Which of the following code snippets will correct the issue?

• border-bottom:5px solid #ffffff; -webkit-box-shadow: 0px 5px #000000; -moz-box-shadow: 0px 5px #000000; box-shadow: 0px 5px #000000;
• -webkit-box-shadow: 0 4px 4px -2px #000000; -moz-box-shadow: 0 4px 4px -2px #000000; box-shadow: 0 4px 4px -2px #000000;
• -webkit-box-shadow: 0 4px 4px -2px inside #000000; -moz-box-shadow: 0 4px 4px -2px inside #000000; box-shadow: 0 4px 4px -2px inside #000000;
• None of these.

Consider the following code:
body { text-replace: "a" "b" "b" "c" }
What will be the output of the following string if the text-replace style is implemented?
andy lives behind cafe

• ndy lives behind cbfe
• cndy lives cehind ccfe
• andy lives behind cafe
• andy lives cehind bafe

What is the default value of the transform-style property?

• preserve-3d
• flat
• none
• preserve

 Suppose that a <tr> tag has 10 <td> tags. In this case which statement is correct given the following?
td:nth-child(3n+0){
    background-color: orange;
}

• It returns a syntax error.
• The background color of the fourth td will be orange.
• The background color of the third td will be orange.
• The background color of every third td will be orange.

 What is the best method to select all elements except for the last one in an unordered list?

• Adding a class to each <li> element but last
• Using li:not(:last-child) css selector
• Using li:last-child selector
• None of the above

 Which of the following will apply a black inner glow with 25% opacity to a page element?

• box-shadow: 0 0 8px rgba(255,255,255, 0.25);
• box-shadow: inset 0 0 8px rgba(0,0,0, 0.25);
• box-shadow: 0 0 8px rgba(255,255,255, 25%);
• box-shadow: inset 0 0 8px rgba(0,0,0, 25%);

 Which of the following is the initial value for the column-fill property?

• auto
• balance
• none

 Which of the following can be used to add a shadow around the div element below?
<div>Lorem ipsum</div>

• box-shadow: 0 0 8px 2px #888;
• border-shadow: 0 0 8px 2px #888;
• div-shadow: 8px 2px 0 0 #888;
• None of these

 What is the maximum value that can be given to the voice-volume property?

• 10
• 100
• 500
• None of the above

 What is the initial value of the font-size property?

• small
• medium
• large
• default

 Is there a way to create a pure CSS3 text color gradient?

• Yes, using the text-gradient property.
• Yes, but only for headings.
• There is no way to do a text color gradient with CSS3.
• None of the above.

 Consider the following code:
border-opacity:0.7;
Given a div element that needs to have a transparent red border, which of the following code samples will work in conjunction with the code above to accomplish the requirement?

• border: 1px solid rgba(255, 0, 0, 0.7);
• border: 1px solid rgb(255, 0, 0, 0.7);
• border: 1px solid rgba(255, 255, 0, 0.7);
• border: 1px solid red; opacity: 0.7;

 What is the initial value of the animation-iteration-count property?

• 0
• 1
• 5
• None

 What is the default value of the animation-direction property?

• none
• normal
• alternate
• inherited

 Is it possible to combine a background image and CSS3 gradients?

• It is possible only when two separate styles are used, "background-image" and "gradient", on an HTML tag.
• It is possible only when "background-image" is used.
• It is possible only when layered HTML tags are used, "background-image" and "gradient".
• It is not possible to combine a background image and CSS3 gradients.

 What will be the outcome of given code?
div[class^="stronger"] { }
{
...
}

• It applies the rule only on divs who belong to a class that begins with "stronger".
• It applies the rule only on divs of class "stronger".
• It applies the rule only on divs who belong to a class which end with "stronger".
• It applies the rule only on divs who belong to a class which does not contain "stronger" in its name.

 To apply style on every input element except text, which of the following selectors should be used?

• input:([!type='text'])
• input:not([type="text"])
• input:not([type!="text"])
• input:([type!='text'])

 Read the following:
@page rotated {size: landscape}
TABLE {page: rotated; page-break-before: right}
What will this code do?

• It will put all tables on a right-hand side landscape page.
• It will rotate the page if the table is positioned at the right side.
• It will keep the table in the landscape position and rotate the page.
• None of the above

What is the initial value of the opacity property?

0
1
normal
none

 State whether the following statement is true or false.
If a parent element display property is set to none, its children too will not be rendered.

• True
• False

 What will happen if the pause property is used as follows?
h2 { pause: 40s 60s }

• pause-before will be set to 40 seconds and pause-after will be set to 60 seconds.
• pause-after will be set to 40 seconds and pause-before will be set to 60 seconds.
• pause-after and pause-before will be set to 40 seconds.
• pause-after and pause-before will be set to 60 seconds.

 Which of the following properties allow percentages in their value fields?
Note: There may be more than one right answer.

• font-size
• font-variant
• font-weight
• line-height

 Which of the following is not a valid value for the font-stretch property?

• condensed
• normal
• semi-narrower
• expanded
• semi-expanded

 What is the initial value of the marquee-speed property?

• slow
• normal
• fast
• none

Which of the following will apply a gradient transition to #DemoGradient using CSS3?

• @-webkit-keyframes pulse #DemoGradient { 0% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(196,222,242)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } 50% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(222,252,255)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } 100% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(196,222,242)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } }
• #DemoGradient{ background: -webkit-linear-gradient(#C7D3DC,#5B798E); background: -moz-linear-gradient(#C7D3DC,#5B798E); background: -o-linear-gradient(#C7D3DC,#5B798E); background: linear-gradient(#C7D3DC,#5B798E); -webkit-transition: background 1s ease-out; -moz-transition: background 1s ease-out; -o-transition: background 1s ease-out; transition: background 1s ease-out; background-size:1px 200px; border-radius: 10px; border: 1px solid #839DB0; cursor:pointer; width: 150px; height: 100px; } #DemoGradient:Hover{ background-position:100px; }
• It is not possible to apply a gradient transition using only CSS3.

 Using height on transitions is not possible with:

• height:auto
• height:100%
• height:0
• max-height:100%

 There are various types of input fields in a HTML page. Choose the appropriate CSS3 code which will have an effect on all inputs, except checkbox and  radio.

• form input:not([type="radio"], [type="checkbox"]) { }
• input:not([type="radio"]):not([type="checkbox"]) { }
• input:not([type="radio & checkbox"]) { }
• input:!([type="radio"]) , input:!([type="checkbox"]) { }

 Is it possible to use transition animations with a gradient background?

• Yes
• No

 What is the difference between float:left; vs display:inline-block; ?

• There is no difference, both of them have the same results.
• display:inline-block; adds whitespace between the elements.
• float:left; collapses the parent element on itself.
• None of these.

 What is the range of values (in decimal notation) that can be specified in the RGB color model?

• 0 to 256
• 0 to 255
• -250 to 250
• -255 to 255

 Which of the following are not valid values for the target-new property?

• window
• tab
• none
• parent
• current

 What will be the output of the following rule?
em { color: rgba(0,0,255,1) }

• Opacity 1 with solid red color
• Opacity 0 with solid blue color
• Opacity 0 with solid red color
• Opacity 1 with solid blue color
• None of these

 While rendering the following code, what is the role of "src" propery?
@font-face {
    font-family: "calibriforh1";
    src: local("calibri"), url(calibri.woff);
}
h1 { font-family: "calibriforh1", arial, sans-serif; }

• It's for searching the user's system for a "calibri" font, and if it does not exist, it will load the font from the server instead.
• It's for searching the user's system for a "calibri" font, and if it does not exist, it will load user's system's default font instead.
• It's for loading the user's system's default font.
• None of these.

 Which of the following statements is true with regard to CSS3 transitions?

• Using CSS transitions will slow down page upload and produce lag.
• The completion of a CSS transition generates a corresponding DOM event. An event is fired for each property that undergoes a transition. This allows a content developer to perform actions that synchronize with the completion of a transition.
• CSS transitions allow DOM events in CSS values to occur smoothly over a specified duration.
• None of these.

 Which of the given options is/are equivalent to the following rule?
DIV { line-height: 1.2; font-size: 10pt }

• DIV { line-height: 1.2em; font-size: 10pt }
• DIV { line-height: 12em; font-size: 10pt }
• DIV { line-height: 120%; font-size: 10pt }
• DIV { line-height: 20%; font-size: 10pt }
• DIV { line-height: 80%; font-size: 10pt }

 What will happen if the following style declaration is applied to an element?
p { margin: 3em 2em }

• The top and the bottom margins will be 3em and the left and the right margins will be 2em.
• The top and the bottom margins will be 2em and the left and the right margins will be 3em.
• The top and the left margins will be 3em and the bottom and the right margins will be 2em.
• The top and the right margins will be 2em and the bottom and the left margins will be 3em.

Suppose there are 16 <div> elements and a style needs to applied only on every 4th element. Which of the following is correct?
Note: There may be more than one right answer.

div:nth-child(4),
div:nth-child(8),
div:nth-child(12),
div:nth-child(16) { }
div:nth-child(4n) { }
div:nth-child(4n+4)  { }
div:nth-child(3n+4)

To make childdiv vertically center of given code, what should the "display" property of parentdiv and childdiv be?
#parentdiv
{
  width: 200px;
  height: 400px;
  vertical-align: middle;
}
#childdiv
{
  width: 100px;
  height: 50px;
}
<div id="parentdiv">
    <div id="childdiv">Vertical Center</div>
</div>

   display:table-cell; for parentdiv and display:inline-block; for childdiv
   display:block; for parentdiv and display:inline-block; for childdiv
   display:inline-block; for parentdiv and display:table-cell; for childdiv
   display:inline-block; for parentdiv and display:inline-block; for childdiv

Problem to solve:
Need to use attribute selector in css to change link on different color and image.
The following code is not working correctly:
...
<style>
a {
     display: block;
     height: 25px;
     padding-left: 25px;
     color:#333;
     font: bold 15px Tahoma;
     text-decoration: none;
 }
 a[href='.pdf'] { background: red; }
</style>
.....
<a href="/manual.pdf">A PDF File</a>
Which of the following code snippets will correct issue?

   a[href$='.pdf'] { /*css*/ }
   a[href#='.pdf'] { /*css*/ }
   a[href@='.pdf'] { /*css*/ }
   a{href$='.pdf'} [/*css*/ ]

Is it possible to format numbers with CSS?

   No, CSS cannot be used for that purpose.
   Yes, it can be done using the number-format property.
   Yes, it can be done using the decimal property.
   None of these.

What is the default value of the transitions property?

   all 0 ease 0
   all 0
   none
   0

What is true about the background-clip property?

The background-clip property specifies the painting area of the background.
The background-clip property is not supported in Internet Explorer 8 and earlier versions.
The background-clip property is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and Safari.
All are correct.

Why is it not possible to unite  webkit-border-radius and -moz-border-radius?

-webkit- and -moz- are vendor-specific prefixes and are not standard CSS3 properties.
-webkit- and -moz- are standard CSS3 properties and are vendor-specific.
-webkit- and -moz- are not standard CSS3 properties and not vendor-specific.
None of these.

What effect does the following rule have?
div { grid-rows: 4em (0.25em 1em); }

It creates rows with 4em height.
It creates a header row with 4em height and alternative rows with 0.25em width and 1em heights.
It creates a header row with 4em height and alternative rows with 0.25em and 1em heights.
It creates a header row with 4em width and alternative rows with 0.25em width and 1em heights.

What will happen when the link is hovered?

The link background will fade out.
The link color will change to #AD310B.
The link background will fade in and change his color to #AD310B.
None of the above.

A/An___________ is defined with 'grid-columns', 'grid-rows' properties.

Explicit grid
Natural grid
Default grid
None of the above

To which of the following elements can the min-width property not be applied?

button
span
table row

What will happen if the following declaration is used?
body
{
   background-image: url("test.png");
   background-attachment: fixed;
   background-position: 100% 100%;
   background-repeat: no-repeat;
}

The image will be shown in the background at the bottom left corner.
The image will be shown in the background at the bottom right corner.
The image will be shown in the background at the top left corner.
The image will be shown in the background at the top right corner.
The image will be shown in the center of the page.

If you set the value of the speak property to digits, how would 22 be spoken?

twenty two
two two
twenty and two
four

Which of the following value of the white-space property will set the value of white-space-collapse to "preserve" and value of the text-wrap to "none"?

normal
pre
nowrap
pre-wrap
e. pre-line

Which of the following declarations can be used to cover the whole background?

body
{
background: red url("test.gif");
background-repeat: repeat-y;
background-attachment: fixed;
}

body
{
background: red url("test.gif");
background-repeat: repeat-x;
background-attachment: fixed;
}

body
{
background: red url("test.gif");
background-repeat: no-repeat;
background-attachment: fixed;
}

body
{
background: red url("test.gif");
background-repeat: repeat;
background-attachment: fixed;
}

body
{
background-image: url("test.gif");
background-repeat: space;
}

You want to set the image resolution to 300dpi irrespective of the resolution of the image. Which of the following codes will be used?

img { image-resolution: auto };
img { image-resolution: auto, 300dpi };
img { image-resolution: 300dpi };
None of the above

What will happen if the value of the transform-style property is set to flat and the element has children?

The element will be shown with 3D effect but the children will be rendered flattened into the 2D plane.
The element will be shown with 2D effect but the children will be rendered into the 3D plane.
Both the element and its children elements will be rendered in 3D effect.
Both the element and its children elements will be rendered in 2D effect.

 Which of the following option does not exist in media groups available in CSS3?

• continuous or paged
• visual or tactile
• grid or bitmap
• braille or screen

What is the initial value of the hyphens property?

none
manual
auto
default

Which of the following is not a user interface element fragment selector?

value
choices
default
repeat-item
repeat-index

What is the problem in the following style sheet?
@import "style.css";
@media print
{
  @import "print-main.css";
  BODY { font-size: 10pt }
}
h1 {color: red }

Two style sheets can't be included with @import.
The body tag can't be included inside @media.
@import rule is invalid since it occurs inside a @media block.
It is valid.

backface-visibility:hidden; will this property hide the back side when an element is rotated?

Yes
No

What is the default value of the transform property in CSS3?

50% 50%
0% 0%
100% 100%
none

You want to float an image to the top of the next-page. Which of the following styles will help you to achieve the desired result?

img { float: next-page; }
img { float: top-corner next-page; }
img { float: next-page top; }
b and c

If the following rule is used, what will be the output?
:focus,:active { outline-offset: 10px }

The focus outline will appear at a distance of 10 pixels from the active element.
The width of the focus outline will be 10 pixels.
No outline will be shown.

Consider the following code:
body { text-replace: "a" "b" "b" "c" }
What will be the output of the following string if you implement the text-replace style?
andy lives behind cafe

bndy lives behind cbfe
cndy lives cehind ccfe
andy lives behind cafe
andy lives cehind bafe

What is the type of the letter-spacing property?

length
number
percentage
integer

What is the default value of the text-align property for Left to Right Languages?

start
end
left
right
center
justify

Which of the following properties doesn"t take up space?

outline
border
Both a and b

If the nav-index property of textbox1 is set to 10, that of textbox2 to 5 and that of textbox3 to 8, what will be the navigation order?

textbox1, textbox2 ,textbox3
textbox2, textbox3 ,textbox1
textbox3, textbox2 ,textbox1
textbox1, textbox3 ,textbox2

Which of the following does not apply to external styles?

Clean separation of design and content
Minimalcode duplication
Highest priority
Reduced page download time

In CSS3, which of the following declarations can rotate an element counter-clockwise?

object-rotation: -30deg
rotate-object: -30deg
transform: rotate(-30deg)
transform: rotateobject(-30deg)

CSS 3 Fiverr Test 2020