DivCSS.html
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 500px;
height: 100px;
border: 3px solid #73AD21;
}
</style>
</head>
<body>
<h2>Set height and width of an Element:</h2>
<div>
This div element has a height of 100px and a width of 500px.
</div>
<p>This div element has a height of 100px and a width of 500px</p>
</body>
</html>
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 500px;
height: 100px;
border: 3px solid #73AD21;
}
</style>
</head>
<body>
<h2>Set height and width of an Element:</h2>
<div>
This div element has a height of 100px and a width of 500px.
</div>
<p>This div element has a height of 100px and a width of 500px</p>
</body>
</html>
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos
0 comments
Post a Comment