I am attempting to create a series of divs, with each div containing two rows. Here is the code I have so far:
index.html
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8>
<title>Rows and Divs</title>
<link href="style.css" rel="stylesheet"/>
</head>
<body>:
<div class="inline">
<div class="block">
<p>
ABC
<br>
DEF
</p>
</div>
<div class="block">
<p>
GHI
<br>
JKL
</p>
</div>
<div class="block">
<p>
MNO
<br>
PQR
</p>
</div>
<div class="block">
<p>
STU
<br>
VWX
</p>
</div>
</div>
</body>
</html>
style.css
div.inline{
display: inline;
}
div.block{
display: block;
}
Expected output:
ABC GHI MNO STU
DEF JKL PQR VWX
Current output:
ABC
DEF
GHI
JKL
MNO
PQR
STU
VWX
What changes can be made to correct this issue and achieve the desired layout?