DISPLAY INLINE/BLOCK/INLINE BLOCK PROPERTY IN CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
.box1{text-align: center;
height: 124px; display: inline-block;
width: 431px; background-color: aqua;}
.box2{ display: inline-block; text-align: center;
height: 124px; width: 431px; background-color: rgb(150, 13, 13);
font-family: ui-rounded;}
</style>
<body>
<div class="box1">Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit unde nobis asperiores adipisci.</div>
<div class="box2">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolorum blanditiis nam architecto amet!</div>
</div>
</body>
</html>
Comments
Post a Comment