cm0002@lemmy.world to Programmer Humor@programming.dev · 28 days agoProgrammers then and nowlemmy.mlimagemessage-square194fedilinkarrow-up11.2Kcross-posted to: [email protected]
arrow-up11.2KimageProgrammers then and nowlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 28 days agomessage-square194fedilinkcross-posted to: [email protected]
minus-squareKorhaka@sopuli.xyzlinkfedilinkEnglisharrow-up2·28 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·28 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; }