+ 3
What is the answer number 3/4Css ruler and selector?
12 Antworten
+ 9
Module 3: Properties >> width and height
1. Fill in the blanks to set the height of the div to 50px, the width to 100px:
div {
border: none;
width: 100px;
height: 50px;
}
2. Width and height are usually expressed in:
Ans: pixels and percents
3. Set the minimum allowable width of the div to 200px:
div {
min- width: 200px;
}
+ 23
ok thanks
+ 12
Module 1: The Basics >> CSS Rules and Selectors
1. In the rule, the "selector":
Ans :selects which element to style
2. Rearrange the code to create a valid CSS style rule:
p{
color: blue;
}
3. Fill in the blanks to give yellow background color to the element with id="intro", and black text color to the class="mytext":
#intro{
background-color: yellow;
}
.mytext{
color: black;
}
4. Drag and drop from the options below to create a style rule for all paragraphs belonging to the element with id="test":
#test p {
color: red;
}
+ 3
Drag and drop from the options below to create a style rule for all paragraphs belonging to the element with id="test":
Answer:
#test p {
color: red;
}
#p .test #test p
+ 1
var e =
$
("<p></p>").text("Some text");
e.
height
(50);
$("
#test
").before(
e
);
0
plz help
0
var e =
$
("<p></p>").text("Some text");
e.
height
(50);
$("
#test
").before(
e
);
0
div {
min-weidth : 200px ;
}
0
.demo p {
color:red
}
- 1
Fill in the blanks to create a new <p> element, set its height to 50px and add it before the element with id="test".
var e =
("<p></p>").text("Some text");
e.
(50);
$("
").before(
);
- 1
$
height
#test
e
- 1
Set the minimum allowable width of the div to 200px:
div {
width:
200px
;
}