that had no effect :/Display: flex;
Justify-content: center;
Align-items:center:
min-height: 100vh;
Assign this to the body since you’re making a full page, or just assign it your class
this will make the div have full size of the screen along with centering the item.
Make a codepen or dm me on discordthat had no effect :/
addedMake a codepen or dm me on discord
https://stackoverflow.com/questions/5481821/image-center-align-vertically-and-horizontally does this help?Hey! trying to centre this image vertically but I'm stuck any ideas?
hmm that didn't work either, I don't think im cut out to do web design hahaTry
Code:margin: 0; position: absolute; top: 50%; transform: translateY(-50%);
kinda got me confused sorry :/
You might have to also add "min-height: 100vh;" if you don't have that yet.hmm that didn't work either, I don't think im cut out to do web design haha[DOUBLEPOST=1582485427][/DOUBLEPOST]
kinda got me confused sorry :/
the answer gives u the many ways you can do to center ithmm that didn't work either, I don't think im cut out to do web design haha
wait I think I got it
[DOUBLEPOST=1582485427][/DOUBLEPOST]
kinda got me confused sorry :/
well its now centred vertically thanks, however it is no longer centred horizontally :/You might have to also add "min-height: 100vh;" if you don't have that yet.
Maybe add "margin: auto;" for the image?well its now centred vertically thanks, however it is no longer centred horizontally :/
it's okay, ill add it now. Sorry im new to html & css. Just trying to make my own webpage considering that I can't afford a web developer to do itAlso i'd recommend fixing your code you don't have a <!DOCTYPE html> <html> nor a <head> and u have closed <body> keeping content outside do you want me to send u a fixed version?
no worries.it's okay, ill add it now. Sorry im new to html & css. Just trying to make my own webpage considering that I can't afford a web developer to do it![]()
actually yes please, im confused again ahaAlso i'd recommend fixing your code you don't have a <!DOCTYPE html> <html> nor a <head> and u have closed <body> keeping content outside do you want me to send u a fixed version?
and instead of span use div's
Add me on Discord: hgbf#6395. I'll help you get started.actually yes please, im confused again aha
didn't work :/Maybe add "margin: auto;" for the image?
this is the structure you followactually yes please, im confused again aha
Add me on Discord: hgbf#6395. I'll help you get started.
okay ill add now[DOUBLEPOST=1582486121][/DOUBLEPOST]Add me on Discord: hgbf#6395. I'll help you get started.
ohh okay that looks familiarthis is the structure you follow
<!DOCTYPE html>
<html>
<head>
meta's , stylesheets, links etc
</head>
<body>
content you want to view on the site
</body>
</html>
and since hgbf seems to have free time i guess he can explain everything to you haha.
