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

Programmers then and now

lemmy.ml

message-square
100
fedilink
895

Programmers then and now

lemmy.ml

@cm0002@lemmy.world to Programmer Humor@programming.dev • 2 months ago
message-square
100
fedilink
alert-triangle
You must log in or register to comment.
  • Obinice
    link
    fedilink
    33•1 month ago

    Okay but how do u center a div in 2025

    • @impedans@lemmy.world
      link
      fedilink
      9•
      edit-2
      1 month 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
        8•1 month ago

        Nah, just flex them boxes

        • @impedans@lemmy.world
          link
          fedilink
          3•1 month 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

    • @x00z@lemmy.world
      link
      fedilink
      English
      5•1 month ago

      Ask the browser nicely while using please and thanks.

    • @burlemarx@lemmygrad.ml
      link
      fedilink
      2•1 month ago

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

    • irelephant [he/him]
      link
      fedilink
      2•1 month ago

      What threw me was having to set a width.

    • @hakunawazo@lemmy.world
      link
      fedilink
      1•1 month ago

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

    • @letsgo@lemm.ee
      cake
      link
      fedilink
      English
      7•1 month ago

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

    • @MadhuGururajan@programming.dev
      link
      fedilink
      English
      1•1 month ago

      use

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

      on the parent container

    • @Anomalocaris@lemm.ee
      link
      fedilink
      2•1 month ago

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

    • @WhiskyTangoFoxtrot@lemmy.world
      link
      fedilink
      5•
      edit-2
      1 month ago

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

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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
  • 16 users / day
  • 103 users / week
  • 732 users / month
  • 2.47K users / 6 months
  • 1 subscriber
  • 1.17K Posts
  • 20.7K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org