Cult I Mean Group
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
VeganPizza69 Ⓥ@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago

The Centerer

lemmy.world

message-square
19
fedilink
321

The Centerer

lemmy.world

VeganPizza69 Ⓥ@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
19
fedilink

Art by gfcf14

https://www.facebook.com/webdevtoons

https://twitter.com/webdevtoons

https://www.instagram.com/webdevtoons/

https://www.reddit.com/user/gfcf14/

alert-triangle
You must log in or register to comment.
  • magic_lobster_party@kbin.social
    link
    fedilink
    arrow-up
    52
    ·
    2 years ago

    Weird flex, but ok

    • Zucca@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Hehe.

      I see what you did there.

    • Andrew@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      It’s not weird, it’s powerful!

  • Bye@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    2 years ago

    I don’t do web dev, I write math software that makes very rich people richer. But I often hear of this centering and layout crap

    Why doesn’t html just have hcenter and vcenter tags or something? Why is centering so hard?

    • xigoi@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      HTML has moved on from non-semantic tags a long time ago, and centering is easy with modern CSS.

    • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆@yiffit.net
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      2 years ago

      Since when does HTML not have a simple centering tag?

      Edit: Since HTML5 apparently. Wow wtf?! I haven’t actually used HTML since I was in high school. That’s wild.

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 years ago

    Centering things on a web page is so easy.

    I also have to look it up every single time.

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

    “We have justify-content and align-items at home”

  • panCatQ@lib.lgbt
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

    I wish i was that good with html/css

  • SaintWacko@midwest.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

    Hell, I’m a web dev and I’d pay someone to center things for me

    • FredericChopin_@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      I usually just try justify-content, justify-items, align-content, and align-items. Then when it gets centered I remove the rest.

      I’m not paid to remember, I’m paid to know it’s possible.

      • SaintWacko@midwest.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Same! I usually open the dev console and just flip through all the options until I find the one that does it

    • I Cast Fist@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      <center></center>

      That’ll be 200 dollars

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

      Co-pilot?

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

    deleted by creator

    • I Cast Fist@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 years ago

      It actually has <center> for centering things horizontally. Yes, it’s literally <center> content </center>. It’s been around since the early 90s, too. Dunno about a vertical center</center>

      • Thorned_Rose@kbin.social
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Center tag is deprecated in HTML5

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

      well with the css grid and flexbox it’s no longer a problem.

    • BlackEco@lemmy.blackeco.com
      cake
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 years ago

      Why doesn’t html just have hcenter and vcenter tags or something?

      HTML is a markup language, its purpose is to structure documents, while CSS can be seen as an additional layer that allows you to style and alter the layout of HTML documents. Because of this philosophy, it wouldn’t make any sense to have such tags.

  • Strawberry@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    cool flex bro

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 182 users / day
  • 803 users / week
  • 2.94K users / month
  • 9.61K users / 6 months
  • 1 local subscriber
  • 36.9K subscribers
  • 1.77K Posts
  • 34.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org