cm0002@lemmy.world to Programmer Humor@programming.dev · 22 hours agoProgrammers then and nowlemmy.mlimagemessage-square143fedilinkarrow-up11.01Karrow-down130cross-posted to: programmerhumor@lemmy.ml
arrow-up1977arrow-down1imageProgrammers then and nowlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 22 hours agomessage-square143fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareKorhaka@sopuli.xyzlinkfedilinkEnglisharrow-up2·12 hours agoIt’s easy, just use @media and padding to the left side of the div to put it in the centre for each screen size.
minus-squareHorse {they/them}@lemmygrad.mllinkfedilinkEnglisharrow-up1·12 hours agodiv { margin: auto; }
It’s easy, just use @media and padding to the left side of the div to put it in the centre for each screen size.
div { margin: auto; }