#CSS img alignment issues
1 messages · Page 1 of 1 (latest)
pretty sure the white outline is the default margin of the body element
I think the image isn't centered because your css is putting the top left corner in the right place but not the center. You need to offset it left half the width of the image somehow, and perhaps offset it vertically as well.
I would suggest using flexbox to center the logo
Or using margin-left:auto and margin-right:auto
is it margin or padding? I always just set both to zero in my projects.
margin I think since the background isnt there
Anyway, OP can try this <div style='width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;position:absolute;top:64px'>...logo goes here...</div>