-4
Hi, could you help me? I can’t put one interface next to the other, I’ve tried using flex, flexbox and even inline, and yet it gets one underneath the other. I would like to place 3 next to each other (in the code I will be sending only has 2). So I’d like you to help me out with this little problem, and I’m very grateful. I saw some videos but still could not solve, always changes the shape of the product or something.
.catalogo {
    width: 1100px;
    margin: 0 auto;
    padding: 50px 0;
    
}
    
.catalogo li {
    text-align: center;
    width: 30%;
    vertical-align: top;
    margin: 0 1.5%;
    padding: 30px 20px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 10px;
    display: flex;
}<main>           
    <ul class="catalogo">
        <li>
            <h2>Trilhas Rio de Janeiro</h2>
            <img src="RJ.png">
        </li>
    </ul>
</main>
    
<main> 
    <ul class="catalogo">
        <li>
            <h2>Trilhas São Paulo</h2>
            <img src="SP.png">
        </li>
    </ul>
</main>
already tested put in the class you give display-flex, add flex-Direction:Row or flex-wrap:?
– Maurício Krüger
I tried now, but it continued the same thing
– Bruno Menaguali
Bruno, first of all it’s important that you know HTML better. For semantic and accessibility reasons, it is not advisable to insert more than one <main> element in the document. Read: https://github.com/frontendbr/forum/issues/30. In addition, you also need to better understand how CSS works. Since it is applying a fixed width and very large in the two tags with class "catalogo". This confuses and makes it harder to understand what you really want to do. I suggest researching CSS Grid and placements using CSS. It’s an essential topic to build layouts. Good luck!
– Jaderson