0
I’m creating a website, created some Ivs and wanted them to be next to each other centralized, I tried with float but it is below.
CSS:
.fundopython{
background:#232323;
width:200px;
height:250px;
padding:5px;
background-image:url(https://pplware.sapo.pt/wp-content/uploads/2018/10/python2-720x405.jpg);
background-position:center;
background-size:cover;
}
.fundocurso{
background:#232323;
width:200px;
height:250px;
padding:5px;
background-image:url(https://pplware.sapo.pt/wp-content/uploads/2018/10/python2-720x405.jpg);
background-position:center;
background-size:cover;
}
.frente{
opacity:0;
width:100%;
height:100%;
background:#C0C0C0;
color:#fff;
transition: all .2s;
display:flex;
justify-content:center;
align-items:center;
flex-direction:column;
transform: scale(0.9);
font-family:verdana;
}
.frente:hover{
opacity:1;
transform: scale(1);
}
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Bu - Cursos</title>
<link rel="stylesheet" href="css/style.css">
<meta charset="utf-8">
<link rel="stylesheet" href="text.css">
<link rel="stylesheet" href="css/estilo2.css">
</head>
<body>
<ul class="nav">
<li id="settings">
<a href="https://github.com/bu"><img src="icons/github.png" /></a>
</li>
<li>
<a href="servicos.html">Serviços</a>
</li>
<li>
<a href="ferramentas.html">Ferramentas</a>
</li>
<li class="options borda-direita">
<a href="#">Cursos</a>
<ul class="subnav">
<li><a href="certificados.html">Premium</a></li>
<li><a href="gratuitos.html">Gratuitos</a></li>
</ul>
</li>
<li id="search">
<form action="" method="get">
<input type="text" name="search_text" id="search_text" placeholder="Search"/>
<input type="button" name="search_button" id="search_button"></a>
</form>
</li>
<li class="options">
<a href="#">Tutoriais</a>
<ul class="subnav">
<li><a href="hacking.html">Hacking</a></li>
<li><a href="programacao.html">Programação</a></li>
<li><a href="pentest.html">PenTest</a></li>
<li><a href="outros.html">Outros</a></li>
</ul>
</li>
<li>
<a href="contato.html">Contato</a>
<li>
<a href="sobre.html">Sobre</a>
</li>
</ul>
<script src="prefixfree-1.0.7.js" type="text/javascript"></script>
<br>
<p class="line anim-typewriter">Certificados</p>
<br>
<div class="fundopython">
<div class="frente">
<h2>Python</h2>
<br>
<br>
<p>
Curso Completo<br>da Linguagem<br>Python 3.7
</p>
</div>
<div class="fundocurso">
<div class="frente">
<h2>Python</h2>
<br>
<br>
<p>
Curso Completo<br>da Linguagem<br>Python 3.7
</p>
</div>
</div>
</div>
</body>
</html>