PlEaSe CeNtEr ThAt DiV

RCMaehl [Any]@lemmy.world to Programmer Humor@programming.dev – 929 points –
145

You are viewing a single comment

Image Transcription: Meme


STOP USING CSS

* HTML WAS NOT SUPPOSED TO BE GIVEN CLASSES
* YEARS OF MARKUP yet NO REAL-WORLD USE FOUND for styling beyond \
* Wanted to center content for a laugh? We had a tool for that: It was called ""
* "Yes please align that content exactly 32.89% left. Please align 59.0px down"
    - Statements dreams up by the utterly deranged

LOOK at what FRONT-END Devs  have been demanding your Respect for all this time.
(This is REAL CSS. done by REAL Devs)

[Three screenshots of CSS code, each one marked with a number of red question marks. The first screenshot has five question marks and reads as follows:]

h1 {
        font-size: .75em;
        position: absolute;
        bottom: 20px;
        width: 94%;
        left: 2%;
}

[The second screenshot has eight question marks and reads as follows:]

*{
    font-size: 30px;

}
    q::before {
  content: "«";
  color: blue;
]

q::after {
  content: "»";
  color: red;
}

[The third screenshot has sixteen question marks and reads as follows:]

#header ul a:focus, #header ul a:active,
#header ul a:hover {
    background-color: #5A5A5A;
    outline-color: -moz-use-text-color:
    outline-style: none;
    outline-width: medium;
}

[The screenshots end.]

"Hello center that div please"

They have played us for absolute fools


I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.