×
×
Correct!
Use the margin property to make sure that the <div> element is center aligned according to its parent element.
<style>
.intro {
width: 200px;
@(6): @(4);
}
</style>
<body>
<div class="intro">
Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. </div> </body>
<style>
.intro {
width: 200px;
margin: auto;
}
</style>
<body>
<div class="intro">
Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. </div> </body> Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 138 exercises.
Are you sure you want to continue?