Question
5. 1. Margins challenge Have a look at the page challenge.html in the top left hand pane, as well as its preview underneath. There are
5. 1. Margins challenge
Have a look at the page challenge.html in the top left hand pane, as well as its preview underneath. There are four paragraphs, each one has its own CSS class p1, p2,
At the top of the HTML page is a
You have to add margins to these paragraphs.
Attention
you have to use the shortest possible notation for each paragraph !
- p1 should have a margin of 20px everywhere.
- p2 should have a vertical margin of 20px and a horizontal margin of 40px.
- p3 should have a top margin of 40px, a bottom margin of 20px and a horizontal margin of 10px.
- p4 should have a top margin of 20px, a left margin of 10px, a bottom margin of 40px and a right margin of 5px.
Good luck !
challenge.html
body {
background-color:#555;
}
p {
background-color:#d86222;
color:#fff;
padding:10px;
}
.p1 {
margin-top: 20px;
margin-bottom: 20px;
margin-right: 20px;
margin-left: 20px;
}
.p2 {
margin-top: 20px;
margin-bottom: 20px;
margin-right: 40px;
margin-left: 40px;
}
.p3 {
margin-top: 40px;
margin-bottom: 20px;
margin-right: 10px;
margin-left: 10px;
}
.p4 {
margin-top: 20px;
margin-bottom: 40px;
margin-right: 5px;
margin-left: 10px;
}
The thing was an enormous cave bear, rearing its colossal bulk fully eight feet at the shoulder, while from the tip of its nose to the end of its stubby tail it was fully twelve feet in length. As it sighted the Sagoths it emitted a most frightful roar, and with open mouth charged full upon them. With a cry of terror the foremost gorilla-man turned to escape, but behind him he ran full upon his on-rushing companions.
The horror of the following seconds is indescribable. The Sagoth nearest the cave bear, finding his escape blocked, turned and leaped deliberately to an awful death upon the jagged rocks three hundred feet below. Then those giant jaws reached out and gathered in the next—there was a sickening sound of crushing bones, and the mangled corpse was dropped over the cliff's edge. Nor did the mighty beast even pause in his steady advance along the ledge.
Shrieking Sagoths were now leaping madly over the precipice to escape him, and the last I saw he rounded the turn still pursuing the demoralized remnant of the man hunters. For a long time I could hear the horrid roaring of the brute intermingled with the screams and shrieks of his victims, until finally the awful sounds dwindled and disappeared in the distance.
Later I learned from Ghak, who had finally come to his tribesmen and returned with a party to rescue me, that the ryth, as it is called, pursued the Sagoths until it had exterminated the entire band. Ghak was, of course, positive that I had fallen prey to the terrible creature, which, within Pellucidar, is truly the king of beasts.
this is the preview this is the not finished preview
The thing was an enormous cave bear, rearing its colossal bulk fully eight feet at the shoulder, while from the tip of its nose to the end of its stubby tail it was fully twelve feet in length. As it sighted the Sagoths it emitted a most frightful roar, and with open mouth charged full upon them With a cry of terror the foremost gorilla-man turned to escape, but behind him he ran full upon his on-rushing companions. The horror of the following seconds is indescribable. The Sagoth nearest the cave bear, finding his escape blocked, turned and leaped deliberately to an awful death upon the jagged rocks three hundred feet below. Then those giant jaws reached out and gathered in the next there was a sickening sound of crushing bones, and the mangled corpse was dropped over the cliff's edge. Nor did the mighty beast even pause in his steady advance along the ledge. Shrieking Sagoths were now leaping madly over the precipice to escape him, and the last I saw he rounded the turn still pursuing the demoralized remnant of the man hunters. For a long time I could hear the horrid roaring of the brute intermingled with the screams and shrieks of his victims, until finally the awful sounds dwindled and disappeared in the distance. Later I learned from Ghak, who had finally come to his tribesmen and returned with a party to rescue me, that the ryth, as it is called, pursued the Sagoths until it had exterminated the entire band. Ghak was, of course, positive that I had fallen prey to the terrible creature, which within Pellucidar, is truly the king of beasts
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started