Set the width of the div to "200px". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the width of the div to "200px".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--from w  w  w  . j a  v a  2  s . com-->
    background-color: pink;
    width: 200px;
}
</style>
</head>
<body>

<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>

</body>
</html>

Related Tutorials