Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
King@sh.itjust.works to Programmer Humor@programming.devEnglish · 4 days ago

Centering a Div

i.ibb.co

message-square
63
link
fedilink
274

Centering a Div

i.ibb.co

King@sh.itjust.works to Programmer Humor@programming.devEnglish · 4 days ago
message-square
63
link
fedilink

comiCSS

  • TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    26
    arrow-down
    1
    ·
    3 days ago

    Do people who talk this kind of shit about css really not understand they’re just admitting they’re not good at css?

    • 𝕱𝖎𝖗𝖊𝖜𝖎𝖙𝖈𝖍@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      Same with people who complain endlessly about JS/TS letting you add a string to an object. I work with this shit daily, these are literally the least of my problems.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Totally agree.

    • cbazero@programming.dev
      link
      fedilink
      arrow-up
      22
      arrow-down
      4
      ·
      3 days ago

      If you need to be good at a layout language to center something, then maybe the layout language sucks.

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

        You literally just have to give it a width and add margin: 0 auto;

        • humorlessrepost@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          23 hours ago

          I think it’s implied they’re talking about centering both horizontally and vertically. And probably with unknown height.

          Still easy these days , though.

        • 𝕱𝖎𝖗𝖊𝖜𝖎𝖙𝖈𝖍@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 days ago

          Or use Flexbox

          But your solution works as well for simple cases

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

            I generally avoid flex for simple stuff (i like weird browsers), but for more complex layouts it should certainly be used.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        3 days ago

        What it says is zero knowledge on the part of the whiner.

    • Whelks_chance@lemmy.world
      link
      fedilink
      arrow-up
      21
      arrow-down
      6
      ·
      3 days ago

      If it were designed properly you wouldn’t need to be good at it, it would be trivial and obvious to do the only thing anyone ever needs to do to their content within an area of the page

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        28
        arrow-down
        1
        ·
        3 days ago

        Good news: centering a div is insanely easy to do and has been for like 15 years.

        • Windex007@lemmy.world
          link
          fedilink
          arrow-up
          18
          arrow-down
          1
          ·
          3 days ago

          You probably didn’t expect that comment to make me feel so old.

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

            Haha, sorry bout that. If it makes you feel any better, I felt pretty old about writing it too!

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

          The last time I did any html/css work was about 15 years ago. Now I’m curious what’s changed.

          • myotheraccount@lemmy.world
            link
            fedilink
            arrow-up
            7
            arrow-down
            1
            ·
            3 days ago

            flex box, grid layout, and a million other things

    • Quibblekrust@thelemmy.club
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      2 days ago

      I’m not good at programming Brainfuck, either.

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

        You probably haven’t put any effort into learning either language. I find that people who whine about css to normally be backend programmers who are really terrible at design and want a scapegoat to blame.

        • Quibblekrust@thelemmy.club
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          1 day ago

          You have a real fuckin’ hard-on for CSS, don’t ya?

          • TrickDacy@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            I have side eye for those with hate boners for it

            • Quibblekrust@thelemmy.club
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              20 hours ago

              You think my joke was a “hate boner”? You need to smoke grass or touch weed or something.

              • TrickDacy@lemmy.world
                link
                fedilink
                arrow-up
                0
                ·
                19 hours ago

                I think you are misunderstanding a lot here

                • Quibblekrust@thelemmy.club
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  15 hours ago

                  Nope. I have you pegged.

                  • TrickDacy@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    12 hours ago

                    I don’t know why you replied to me in the first place (besides being a css whiner) and it just keeps getting more baffling the more you keep replying. You seem to be incredibly bored. I’d suggest a better hobby

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.28K users / day
  • 3.64K users / week
  • 8.08K users / month
  • 17.9K users / 6 months
  • 1 local subscriber
  • 28K subscribers
  • 1.44K Posts
  • 37.7K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org