これらの2つのボックスを同じ行に並べることはできません。何が間違っているのですか?それはインラインブロックを持つもののようです。内容を無視してください。ボックスを同じ行に配置できません
.corpo {
font-family: 'Roboto', sans-serif;
height: 400px;
margin: 200px 15px 30px 15px;
text-align: center;
}
.bloco {
display: inline-block;
margin: 15px 5% 15px 5%;
width: 300px;
height: 350px;
border-style: solid;
border-width: 3px;
border-color: grey;
}
.cabecalho-bloco {
margin-bottom: 10px;
border-bottom-style: solid;
border-width: 2px;
border-color: grey;
}
input[type="file"] {
display: none;
}
#file {
font-weight: normal;
box-shadow: 1px 1px 4px 1px;
color: grey;
padding: 5px;
border-style: solid;
border-width: 1px;
}
#file:hover {
color: black;
}
<div class="corpo"> <!-- Blocos -->
<div class="bloco">
<div class="cabecalho-bloco"><h3 style="font-weight: bold;">Contagem</h3></div>
<div>
\t <form>
\t \t <br><br>
\t \t <a><label id="file" for="selecao-arquivo">Selecionar arquivo</label>
\t \t \t \t <input id="selecao-arquivo" type="file"></a>
\t \t \t \t <br><br>
\t \t \t \t <input type="button" value="Baixar">
\t </form>
</div>
</div> \t
<div class="bloco">
<div class="cabecalho-bloco"><h3 style="font-weight: bold;">Promoção</h3></div>
<div>
\t <form>
\t \t <br><br>
\t \t <input type="text" placeholder="Produto">
\t \t <br><br>
\t \t <input type="button" value="Consultar">
\t </form>
</div>
</div>
</div><!-- Fim blocos -->
display:flexはこれをチェックするのを助けます[FiddleHere](https://jsfiddle.net/x24k74sk/) – stacky