У меня есть 6 изображений подряд, и я хочу расположить 3 слева и 3 справа. Я попробовал display: flex и float: left, но он просто увеличил весь контент под вкладкой раздела на перекрывающихся экранах. Как мне разделить 6 изображений пополам с текстом в середине?
<section className="open-text">
<h1>
<br/>
<img className="move_to_left" height="70" width="70" alt="usda_icon" src= "images/FDAT.gif"/>
<img className="move_to_left" height="70" width="70" alt="usda_icon" src= "images/usdaT.gif"/>
<img className="move_to_left" height="80" width="80" alt="usda_icon" src= "images/dermT.png"/>
***String of Text***
<img className="move_to_right" height="90" width="90" alt="usda_icon" src= "images/HypoT2.jpg"/>
<img className="move_to_right" height="100" width="100" alt="usda_icon" src= "images/ssl.png"/>
<img className="move_to_right" height="80" width="80" alt="usda_icon" src= "images/para2.gif"/>
<br/>
</h1>
</section>
CSS
.open-text > h1 {
color: #1e3a87;
border-top: 1px solid white;
margin-top: 12.5px !important;
height: 10rem;
display: flex !important;
align-items: center !important;
mix-blend-mode: color-burn;
display: flex !important;
align-items: center !important;
font-family: 'Cinzel Decorative', cursive;
}
.open-text > h1 {
/*border: 4px solid red;*/
/*display: flex;*/
/*justify-content: space-around;*/
/*float: left;*/
}
.open-text > h1:nth-child(odd) {
border: 1px solid red;
/*float: right;*/
}