cm0002@lemmy.world to Programmer Humor@programming.dev · 1 month 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 · 1 month agomessage-square194fedilinkcross-posted to: [email protected]
minus-squareKorhaka@sopuli.xyzlinkfedilinkEnglisharrow-up2·30 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·30 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; }