cm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agoProgrammers then and nowlemmy.mlimagemessage-square175fedilinkarrow-up11.14Karrow-down137cross-posted to: programmerhumor@lemmy.ml
arrow-up11.11Karrow-down1imageProgrammers then and nowlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square175fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareKorhaka@sopuli.xyzlinkfedilinkEnglisharrow-up2·3 days 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-up2·3 days 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; }