cm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agoProgrammers then and nowlemmy.mlimagemessage-square188fedilinkarrow-up11.18Karrow-down139cross-posted to: programmerhumor@lemmy.ml
arrow-up11.14Karrow-down1imageProgrammers then and nowlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square188fedilinkcross-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; }