ExLisper Site
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 3 days ago

Programmers then and now

message-square
48
fedilink
597

Programmers then and now

cm0002@lemmy.world to Programmer Humor@programming.dev · 3 days ago
message-square
48
fedilink
  • Obinice@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    3 days ago

    Okay but how do u center a div in 2025

    • MadhuGururajan@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 hours ago

      use

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

      on the parent container

    • impedans@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      3 days 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
        4
        ·
        3 days ago

        Nah, just flex them boxes

        • impedans@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          3 days 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
      3
      ·
      2 days ago

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

    • WhiskyTangoFoxtrot@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 days ago

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

    • x00z@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Ask the browser nicely while using please and thanks.

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

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

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

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

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

      What threw me was having to set a width.

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
Visibility: Public
globe

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

  • 341 users / day
  • 1.43K users / week
  • 3.54K users / month
  • 4.49K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 280 Posts
  • 925 Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.10
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org