0
div {
display: flex;
flex-direction: row;
flex:1;
justify-content: center;
align-items: center;
}
img{
margin: 10px 0;
}
<div>
<section>
<h1>Titulo 1</h1>
<p> alguem paragrafo de descrição 1 </p>
<ol>
<li> item 1</li>
<li> item 2</li>
<li> item 3</li>
</ol>
</section>
<img src="https://i.pinimg.com/236x/ae/6f/0c/ae6f0c06031ec9671943bd8be104955f.jpg" width="300px">
</div>
<div>
<section>
<h1>Titulo 2</h1>
<p> alguem paragrafo de descrição 2 </p>
<ol>
<li> aaa </li>
<li> aaa </li>
<li> aaa </li>
</ol>
</section>
<img src="https://www.mentebinaria.com.br/uploads/monthly_2018_02/large.enduser.jpeg.bba8c1fc675d79f4498627eef97fef92.jpeg" width="300px">
</div>
<div>
<section>
<h1>Titulo 3</h1>
<p> alguem paragrafo de descrição 3 </p>
<ol>
<li> ronaldo </li>
<li> romero brito </li>
<li> kugo stozo </li>
</ol>
</section>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR21uPpWezBvq5pq8wBWN3led17DmF0YTIKsUraGaxbaFyUah8d" width="300px">
</div>
<div>
<section>
<h1>Titulo 4</h1>
<p> alguem paragrafo de descrição 4 </p>
<ol>
<li> amarelo </li>
<li> azul </li>
<li> vermelho </li>
</ol>
</section>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3B6n6DyBqzVZeKgMgceAkL7aoosSLgI6NYG4djCFjKSnxJRWlBA" width="300px">
</div>
first excuse Newbie’s question but I really did not find a satisfactory answer on Mr. google.
so I have a chunk of code that has 4 Divs that follow the same pattern, but with different content, like reuse this same structure and add 4 Divs, without using one (Ctrl c Ctrl v), the goal here and decreases the amount of lines in the html file.
You want to do it in the browser or on the server?
– Sergio
what’s the difference? I think q in the browser.
– leonardo vita
I suggest you do it where you have the contents for those records. If you have it in the database it seems more logical to me on the server, but depending on the usage... there are pros and cons... what language do you have on the server? where you have that data?
– Sergio
<template>
+json
= . Anything I can post an example based on the posted structure.– Valdeir Psr
Yes, at the moment only on my computer, I am studying.
– leonardo vita
@Valdeirpsr if it is not to give work brother, put there :)
– leonardo vita
The @Sergio example already helps. :)
– Valdeir Psr