Danyel Varejão
@danyelvarejaoAll comments
- @joaoandraadeSubmitted over 1 year ago@danyelvarejaoPosted over 1 year ago
Oi, vi que você é brasileiro, eu queria te ajudar com algumas dicas.
Tenta usar nome mais intuitivos para classes, vi que você utilizou os nomes
alto
ebaixo
nas suas tagsh1
ep
, você poderia utilizar algo comotitulo
outitle
na tagh1
edescricao
oudescription
na tagp
.Vi também que você utilizou a propriedade
padding
para dar espaçamentos externos entre os items, existe uma propriedade chamadamargin
que serve para isso.Espero ter te ajudado!
0 - @mindxcircusSubmitted over 1 year ago
I find that ** I can't easily center the object vertically** with the usual use of 'display:flex', 'justify-content:center', and 'align-item:center' OR 'display:grid', 'place-item:center'. Tried to look at YT too but their solution doesn't fix mine. I had to use transform tag instead. Does anyone know why the usual solution to center vertically doesn't work for me? Is it a parent-child problem of the DIV?
@danyelvarejaoPosted over 1 year agoHello, you need
min-height: 100vh
onbody
By default the body has a height according to the elements it has inside.
body { margin: 0; min-height: 100vh; display: grid; place-items: center; font-family:'Outfit',sans-serif; background: hsl(212, 45%, 89%); }
remember to remove translateY you used in
.container
I hope this was useful for you.
Marked as helpful2 - @essodekepaniziSubmitted over 1 year ago@danyelvarejaoPosted over 1 year ago
Hello, already it is an excellent code that I see there :) But I can notice that the
containeroverall
and thecontainersummary
don't have the same width.I think from your code you could use
display: flex
insecondcontainer
and usewidth: 100%
orflex: 1
incontaineroverall
and incontainerssummary
so that both are the same size.I really hope this will be useful to you.
0