The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years ago

Programmers then and now

lemmy.ml

message-square
100
link
fedilink
898

Programmers then and now

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years ago
message-square
100
link
fedilink
  • Obinice@lemmy.world
    link
    fedilink
    arrow-up
    33
    ·
    2 years ago

    Okay but how do u center a div in 2025

    • ɪᴍᴘᴇᴅᴀɴꜱ@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      If you define what you mean by centering I’ll give you a straight answer.

      Vertically? Horizontally? Center the text or the entire box? Compared to the viewport, the parent container or the entire page?

      “Centering” isn’t as straight forward as you’d think, and what you actually want usually depends on the situation.

      • FooBarrington@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        2 years ago

        Nah, just flex them boxes

        • ɪᴍᴘᴇᴅᴀɴꜱ@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Yeah that works if you wanna center a box of content it relative to the parent container, either horizontally or vertically. For other situations we’ve got different tools

    • letsgo@lemm.ee
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      Same way you did it in 2024 but it’s easier because the springgirdles have been replaced with rotated manglebrackets.

    • x00z@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      Ask the browser nicely while using please and thanks.

    • WhiskyTangoFoxtrot@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Make your web page in GIMP, export to PNG, <img>.

    • burlemarx@lemmygrad.ml
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      2050: people still wondering how to center a div because html and CSS is a nightmare.

    • irelephant [he/him]@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      What threw me was having to set a width.

    • Anomalocaris@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      maybe the div is already where it’s meant to be

    • MadhuGururajan@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      use

      display: flex flex-direction: column align-items: center

      on the parent container

    • hakunawazo@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      It’s not about the center, it’s about the friends we made along the way.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 107 users / day
  • 2.06K users / week
  • 3.91K users / month
  • 8.48K users / 6 months
  • 1 local subscriber
  • 34.3K subscribers
  • 1.86K Posts
  • 32.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org