Não estou conseguindo resolver o Capítulo 23 aula 6 do curso em vídeo sobre HTML e CSS

1. Não estou conseguindo resolver o Capítulo 23 aula 6 do curso em vídeo sobre HTML e CSS

erickmartinspedroso
silvermental

(usa Lubuntu)

Enviado em 13/10/2024 - 19:16h

Estou com tendo um problema com o capítulo 23 aula 6 do curso de HTML e CSS, por que eu não consigo colocar a imagem das redes sociais dentro da imagem de celular ja tentei de tudo mais não consegui

alguém poderia me ajudar

vídeo abaixo

link:https://drive.google.com/file/d/1LCnBRg4PTK6VkeC75mrVoaDW-vdhSTFl/view?usp=sharing


  


2. Re: Não estou conseguindo resolver o Capítulo 23 aula 6 do curso em vídeo sobre HTML e CSS

Alexa Bolada
alexabolada

(usa Debian)

Enviado em 13/10/2024 - 19:16h

Oi! Posso te ajudar com isso.

Pelo que você descreveu, parece que você está tentando posicionar ícones de redes sociais dentro da imagem de um celular usando HTML e CSS. Vamos revisar algumas dicas para você conseguir isso.

Primeiro, você deve ter um contêiner para a imagem do celular e sobrepor as imagens das redes sociais. Aqui está um exemplo básico de como você pode fazer isso:

```html
<div class="celular">
<img src="caminho/para/imagem/do/celular.png" alt="Celular">
<div class="redes-sociais">
<img src="caminho/para/imagem/facebook.png" alt="Facebook">
<img src="caminho/para/imagem/instagram.png" alt="Instagram">
<img src="caminho/para/imagem/twitter.png" alt="Twitter">
</div>
</div>
```

E o CSS poderia ser algo assim:

```css
.celular {
position: relative;
}

.redes-sociais {
position: absolute;
top: 50px; /* Altere de acordo com onde você quer posicionar */
left: 20px; /* Altere de acordo com onde você quer posicionar */
}

.redes-sociais img {
width: 30px; /* Altere o tamanho como preferir */
margin: 5px; /* Espaçamento entre


3. Re: Não estou conseguindo resolver o Capítulo 23 aula 6 do curso em vídeo sobre HTML e CSS

Random
Rand0m

(usa Arch Linux)

Enviado em 13/10/2024 - 19:26h

Pode postar o código fonte? Ficaria mais fácil te ajudar


4. Re: Não estou conseguindo resolver o Capítulo 23 aula 6 do curso em vídeo sobre HTML e CSS

erickmartinspedroso
silvermental

(usa Lubuntu)

Enviado em 13/10/2024 - 19:50h


HTML:

<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="Estilos/style.css">
<title>Projeto Social</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<main>
<section id="telefone">
<iframe src="home.html" frameborder="0" id="tela"></iframe>
</section>

<section id="redes-sociais">
<a href="#" target="tela"><img src="imagens/logo-home.jpg" alt=""></a> <br>

<a href="instagram.html" target="tela"><img src="imagens/logo-instagram.jpg" alt="instagram"></a> <br>

<a href="Twitter.html" target="tela"><img src="imagens/logo-twitter.jpg" alt="twitter"></a> <br>

<a href="youtube.html" target="tela"><img src="imagens/logo-youtube.jpg" alt="youtube"></a> <br>

<a href="#" target="tela"><img src="imagens/logo-facebook.jpg" alt="facebook"></a> <br>

<a href="github.html" target="tela"><img src="imagens/logo-github.jpg" alt="github"></a> <br>
</section>

</main>
</body>
</html>

CSS:

@charset "UTF-8";

body {
background: url('../imagens/fundo-madeira.jpg') no-repeat top center;
background-size: cover;
background-attachment: fixed;
}

* {
margin: 0px;
padding: 0px;
font-family: Arial, Helvetica, sans-serif;
}

html,body {
height: 100vh;
width: 100vw;
background-color: black;
}

main {
height: 100vh;
position: relative;
}

section#telefone {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

height: 627px;
width: 310px;
background: url('../imagens/frame-iphone.png') no-repeat;
}

iframe#tela {
position: relative;
top: 80px;
left: 22px;
width: 267px;
height: 471px;
}

section#redes-sociais img {
width: 50px;
margin: 10px;
border-radius: 50%;
box-shadow: 2px 2px 5px rgb(0, 0, 0);
}

section#redes-sociais {
text-align: right;
}

section#redes-sociais img:hover {
border: 2px solid rgba(255, 255, 255, 0.685);
transform: translate(-3px -3px);
box-shadow: 5px 5px 10px black;
transition: transform .3s,;
}






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts