Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how to make a section containing 3 divs in one row using tailwind css,and every div has one img ,title and para in html

+3 votes
asked Mar 30, 2023 by Fairy anmol (150 points)

1 Answer

0 votes
answered Jul 16, 2023 by venu (140 points)
<html>

<head>

<title>Using display properties</title>

<style>

.main-div{

width : 100%;

height : auto;

display: flex;

flex-direction :row;

justify-content : space-around;

}

</style>

</head>

<body>

<!-----------------section is the element used to create separate division form document in HTML-5------->

<section class="main-div">

<div class="first-div">

<img  src="image.png1" width ="100px" height="100px">

<h3>First Image</h3>

<p>This is the paragraph though you about image above displayed in first image</p>

</div>

<div class="second-div">

<img  src = "image.png2" width ="100px" height="100px">

<h3>Second Image</h3>

<p>This is the paragraph though you about image above displayed in second image</p>

</div>

<div class="third-div">

<img  src="image.png3" width ="100px" height="100px">

<h3>Third Image</h3>

<p>This is the paragraph though you about image above displayed in Third image</p>

</div>

</section>

</body>

</html>
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...