cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agoProgrammers then and nowlemmy.mlexternal-linkmessage-square181linkfedilinkarrow-up11arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1external-linkProgrammers then and nowlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square181linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareKorhaka@sopuli.xyzlinkfedilinkEnglisharrow-up0·2 months 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-up0·2 months 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; }