o meu ficou muito estranho espaçamentos,e segui certinho revi a aula 3x e continua assim
HTML
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alura Books</title>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="cabecalho">
<div class="container">
<span class="cabecalho__menu-hamburguer" class="container__imagem"></span>
<img src="assents/Logo.svg" alt="logo do alurabooks" class="container__imagem">
</div>
<div class="container">
<a href="#"><img src="assents/Favoritos.svg" alt="Meus favoritos" class="container__imagem"></a>
<a href="#"><img src="assents/Compras.svg" alt="carrinho de compras" class="container__imagem"></a>
<a href="#"><img src="assents/Usuário.svg" alt="perfil do usuario" class="container__imagem"></a>
</div>
</header>
</body>
</html>
reset
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
header
.cabecalho__menu-hamburguer{
width: 24px;
height: 24px;
background-image: url(../assents/Menu.svg);
background-repeat: no-repeat;
background-position: center;
display: inline-block;
}
.cabecalho {
background-color: var(--braco);
display: flex;
justify-content: space-between;
align-items: center;
}
.container {
display: flex;
align-items: center;
}
.container__imagem {
padding: 1em;
}
style
@import url(styles/header.css);
:root {
--cor-de-fundo:#EBECEE;
--braco: #ffffff;
}
body {
background-color: var(--cor-de-fundo);
}
