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

Programmers then and now

lemmy.ml

message-square
135
fedilink
987

Programmers then and now

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 10 days ago
message-square
135
fedilink
  • Obinice@lemmy.world
    link
    fedilink
    arrow-up
    39
    ·
    9 days ago

    Okay but how do u center a div in 2025

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

        Nah, just flex them boxes

        • impedans@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          9 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

      • Schadrach@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        4
        ·
        9 days ago

        Fuck it, align=‘center’. That’ll center it horizontally relative to some context and if that’s not good enough then you should have been more precise in your request.

    • Blackmist@feddit.uk
      link
      fedilink
      English
      arrow-up
      9
      ·
      9 days ago

      Depends if you’re centering the div or the things in the div. Which has probably been the main issue since CSS was invented.

    • Oniononon@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      9 days ago

      While centering div, you add one to 2023.

    • letsgo@lemm.ee
      link
      fedilink
      English
      arrow-up
      7
      ·
      9 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
      5
      ·
      edit-2
      9 days ago

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

    • x00z@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      9 days ago

      Ask the browser nicely while using please and thanks.

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

      What threw me was having to set a width.

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

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

    • MadhuGururajan@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 days ago

      use

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

      on the parent container

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.

  • 1.43K users / day
  • 3.67K users / week
  • 6.77K users / month
  • 14.8K users / 6 months
  • 1 local subscriber
  • 23.3K subscribers
  • 1.25K Posts
  • 30.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org