CSS Set the height and width of an element
<!DOCTYPE html>
<html>
<head>
<style>
div {
height: 200px;
width: 600px;
background-color: yellow;
}
</style>
</head>
<body>
<h2>Set the height and width of an element</h2>
<p>This div element has a height of 200px and a width of 600px:</p>
<div></div>
</body>
</html>
Comments
Post a Comment