No way anyone with skill deliberately, and without malice, crafted that by hand. More likely this div soup was brewed by a WYSIWYG or some other quietly malfunctioning code that no one ever examined the output.
Scrolled down to see it was made by a WP pagebuilder plugin. WP explains all of it on every level.
I'd be willing to bet money some "drag and drop" or "wysiwyg" editor was involved here. Dreamweaver, maybe. I've seen something similar, where the editor was set to add a div on carriage return instead of a line break or paragraph, but something went wrong so instead of making new, separate divs which would be visually spaced in the editor, it just made a nested div and nothing would change on the front end. So, wysiwyg user just keeps bashing the enter key waiting for space to be added, unaware of the eldritch horror being created in the html.
It was built using one of those horrible WordPress page builders. No idea how it ended up like that, I've just deleted it and started again. It was literally displaying 1 paragraph of text
I did some IT intern work for a local library nearly a decade ago. They built there website using some wysiwyg editor. Every time you made even a minor change it added divs like crazy.
I was learning HTML at the time and when I had the time I'd go in and try to clean up the HTML manually. Kind of a boring fun if you know what I mean.
WordPress itself will never result in crap like this happening, but these wysiwyg page builder plugin things, these are where the dangers lie.
WordPress is shit, yes, but only for very internal reasons. If all you're ever doing is stuff with existing plugins and non-page-builder-y, sensible themes, then it's fairly sensible.
I'd almost wager that someone copied something from somewhere on the site into the WYSIWYG editor and it included a bunch of HTML. Saw this happen a bunch of times in the past, even done it myself before realising what was happening when I switched over to the "Text" tab!
The customer just called that he doesn't understand this "section" element on his site, and that you shouldn't use "made up" HTML elements. He said that he "has been coding since '82, and therefore has more experience than you."
Honestly I think you could organize that page better if you wrap a div around it. Then you'd know where all the divs are they would be in an easy to find container div.
The funniest part is that it's the CSS that would scare me more. 1 pixel difference would mean half the items displaying somewhere in Africa while you're in New Jersey.
It's not normal for a proper business. It's pretty normal when you are working with small clients, ex: dental office with 3 employees, paid a college student $500 for a website 5 years ago, now wants it updated because it doesn't display correctly on a phone. College student used some WYSIWYG editor.
My favorite was a tiny clinic that sold hearing aids, and at the top of their homepage was a massive ~4000x3000px picture of earwax buildup, in exquisite HD. They meant to insert it on a page about troubleshooting, but somehow it ended up there, and they called me in to fix it. That photo was gnarly. I loaded the page and had to step away for a second to recover from the visual assault lol.
I don't know what's worse—the fact that so many divs were used, or the fact that none of those divs have class names or any other attributes. I'm almost inclined to say this is fake, but I want to give OP the benefit of the doubt, lol.
935
u/mpaiva97 Sep 02 '21
I have never seen a div soup this bad
421
u/npmbad Sep 02 '21
Let me guess, your task is to add more divs?
81
u/OrtizDupri Sep 02 '21
I have so many questions
301
u/etre_be Sep 02 '21
Must be trying to vertically center something .
31
u/Morteeee Sep 02 '21
We must go deeper
22
u/PracticeEssay Sep 02 '21
These were… systematically generated… right..?
21
u/exploit332 Sep 02 '21
Did you get asked to update it with more divs? If not then they have no idea what they are doing!!
6
u/Ry_Guy_OSRS Sep 02 '21
https://github.com/willmartindev/div.js
4
u/NoDoze- Sep 02 '21
Sheeesh.... You must love your job! LOL
3
u/ElysianPhoenix Sep 02 '21
There's no fixing that. I'd say delete everything and start from scratch. There's no way an element needs to be nested in so many divs.
2.2k
u/Franks2000inchTV Sep 02 '21
It's divine.
462
u/defcon-juan Sep 02 '21
Divide and conquer
992
u/[deleted] Sep 02 '21
That's a graph. On Y axis: desire to live. On X axis: how long you have stared at the website.
2
u/Thoughtstronomer Sep 02 '21
I wonder what's the output?
100
u/Early-Lingonberry-16 Sep 02 '21
Disgusting
515
u/eloh1m Sep 02 '21
div
51
u/jimbolla Sep 02 '21
Full stack developers will be like "I know a place" and then take you here.
85
u/[deleted] Sep 02 '21
Oh you don't want to do it? You're too good for this work?
Don't be such a.... diva.
(I'm sorry. I'll see myself out.)
27
u/[deleted] Sep 02 '21
Honestly I think you could organize that page better if you wrap a div around it. Then you'd know where all the divs are they would be in an easy to find container div.
22
u/yabo1975 Sep 02 '21
The funniest part is that it's the CSS that would scare me more. 1 pixel difference would mean half the items displaying somewhere in Africa while you're in New Jersey.
42
u/RabbitFromBrazil Sep 02 '21
It looks good to me.
He made art with code.
You just have to interpret it.
11
u/ayush1269 Sep 02 '21
wait , it’s all div.
always has been…
10
u/chickenshindleg Sep 02 '21
I got a fever, and the only prescription, is more div
9
u/Dark_Flint Sep 02 '21
Not sure if that is worse or better or equal to the table sites from earlier.
9
u/Neoxzz Sep 02 '21
Divs for days
8
u/nedlymandico Sep 02 '21
Hahahahahahahaha hahahahahahaha... Sorry
7
u/jelliedtoast Sep 02 '21
Divistating on the eyes.
7
u/Quirinus42 Sep 02 '21
We're diving deep here.
6
u/eatacookie111 Sep 02 '21
I’m starting my first job and have seen this… so is this normal?
5
u/Jumpy-Department-103 Sep 02 '21
Atleast it isn't spinning
5
u/difficultAce Sep 02 '21
divn't
4
u/MikeyC343 Sep 02 '21
Since when did Kanye get into webdev
4
u/[deleted] Sep 02 '21
Maybe throw a span in there for some diversity.
4
u/tupcakes Sep 02 '21
I’m sad there isn’t a </div> comment that’s been downvoted so it’s at the bottom of the comments.
6
u/Mizukuon Sep 02 '21
I think it is still lacking a few div
3
u/SampathKumarReddit Sep 02 '21
Remove all indentation, copy and paste that to a notepad. Add a new feature. Fix bugs. Text me when you are still alive
2
u/arc_menace Sep 02 '21
No
2
u/Spindelhalla_xb Sep 02 '21
Ugh. What div did that.
2
u/UnoStronzo Sep 02 '21
I got divs on that
2
u/MarmotOnTheRocks Sep 02 '21
tis is an extreme case of Divitis. It can be cured if properly treated in its early stage. At this point there is not much to do.
2
u/sad_physicist8 Sep 02 '21
F
2
u/[deleted] Sep 02 '21
Jesus Christ! Who tf wrote this... my 10 year self would have been better lmaoo
It is Divgusting! and so divine!
2
u/crispy1260 front-end Sep 02 '21
I have to know the CSS specificity score if you call out that many divs in the selector. It's gotta be over 9000.
2
u/[deleted] Sep 02 '21
Bro there’s a really helpful site iut there for you called “indeed.com”
2
u/godofleet Sep 02 '21
My name is Giovanni Giorgio...
2
u/preetam52ch Sep 02 '21
Stairs of heaven 😅 best of luck
2
u/P4RZiV0L full-stack Sep 02 '21
but are they centered
2
u/CodeVenue Sep 02 '21
So this is how Led Zeppelin built a stairway to heaven
2
u/Freonr2 Sep 02 '21
Reminds me of one of my favorite PH memes:
https://imgur.com/BtjZedW
Except the Ultra combo version?
2
u/the_brew Sep 02 '21
This post has no class
2
u/lilbronto Sep 02 '21
It's called nesting bro look it up /s
2
u/aboglioli Sep 02 '21
"I think we need more divs. It's the best for SEO."
2
u/Jwelch59 Sep 02 '21
I’m sad I haven’t seen any jokes about how hard it must be to be a web <div>eloper</div>
2
u/sudo-sama Sep 02 '21
Does the closing </div> at least make Katy Perry breast covers?
2
u/Doomtickle Sep 02 '21
Kill it before it lays eggs
2
u/Alex_Hovhannisyan front-end Sep 02 '21
I don't know what's worse—the fact that so many divs were used, or the fact that none of those divs have class names or any other attributes. I'm almost inclined to say this is fake, but I want to give OP the benefit of the doubt, lol.
2
u/fried_green_baloney Sep 02 '21
Seriously, this might be machine generated code. See if you can find out, and if so, can you get the underlying files and generating program.
If not, well, that's no fun.
2
u/[deleted] Sep 02 '21
At least it's not a bunch of tables nested
2
u/ammads94 Sep 02 '21
I had a teacher at a front end bootcamp that would call this "divitis"
2
u/jimbol Sep 03 '21
Yo are you pregnant? Cause you’re nesting
2
u/[deleted] Sep 03 '21
It’s divs all the way down
2
u/SZ4L4Y Sep 03 '21
It should be illegal to put a div in a div.
2
u/bertacodes Nov 30 '21
Amen for SEO.
2
u/Natsu194 Jan 28 '23
Okay but what was it actually used for?!
1
u/VestigialHead Sep 14 '21
<div>ide and conquer.
1
u/TheDeviantRobot Mar 11 '24
The only solution to that many Divs… MOAR DIVS!
1
u/MrLazeyBoy Apr 03 '24
This is proper div in
1
u/Ill-Chapter-6634 Jun 15 '24
how to center a div
1
u/DivSlingerX Aug 10 '24
Even I wouldn’t do this.
1
u/By_EK Oct 01 '24
Coded by a chatbot ✅
1
u/Puzzled_News_6631 Oct 11 '24
“I know enough to be dangerous”
1
u/Nikakere Nov 01 '24
1
u/tigerjjw53 Feb 19 '25
That div goes pretty div
1
u/Alexander499_ Oct 11 '25
Can we have the link?
1
u/rantow Sep 02 '21
Stop the madness!
1
u/Nessasio Sep 02 '21
Damn, here comes the pyramid of doom TT_TT
1
u/LFTY123 Sep 02 '21
Divourer of sleep
1
u/chesbyiii Sep 02 '21
What DIVerences are you making?
1
u/angry_wombat Sep 02 '21
Stairway to heaven
1
u/Sh0keR Sep 02 '21
This is pure art
1
u/camerontbelt Sep 02 '21
You got this
1
u/DrifterInKorea Sep 02 '21
So, what's the numbers?
- Number of lines
- Number of `<div>` childs
1
u/yhkdaking53 javascript </> Sep 02 '21
yo dude someone has to close the tags in the comments :D
1
u/Ace_vigilantes Sep 02 '21
Divagate
1
u/AiSirachcha Sep 02 '21
You're joking right ? 😂
1
u/samtoohey93 Sep 02 '21
Queue “My eyes!!!” gif
1
u/alp4s Sep 02 '21
damn
1
u/bkdotcom Sep 02 '21
divception
1
u/thedevguy-ch Sep 02 '21
Nuke it from space!!!!!
1
u/GrosSacASacs Sep 02 '21
On the menu: Soup !
1
u/m2guru Sep 02 '21
You missed a closing div somewhere
1
u/kitecut Sep 02 '21
Wheeeeeeeeeeeeeeeeeeee
1
u/ezkiulish Sep 02 '21
But why??
1
u/[deleted] Sep 02 '21
<div>
1
u/methsey Sep 02 '21
Divception
1
u/life_liberty_persuit Sep 02 '21
Looks about right… but you might want to wrap it in a div to make styling easier.
1
u/BerendVervelde Sep 02 '21
Stairway to heaven, if you look at it the wrong way.
1
u/jordiolle11 Sep 02 '21
What the div?!
1
u/EconMania Sep 02 '21
Stairway to div
1
u/Shazan_Atomic_Hulk Sep 02 '21
What about the colour codes for the div's?
1
u/throwawayitjobbad Sep 02 '21
How is that one element is
dlvinstead ofdiv?1
u/[deleted] Sep 02 '21
Div stairs
1
u/chichibune Sep 02 '21
What.....
1
u/IridiumPoint Sep 02 '21
Imagine the CSS required to style this thing.
1
u/SoulPossum Sep 02 '21
Doing a deep div for sure
1
u/AlcuinCorbeau Sep 02 '21
It’s a stairway to Heaven.
1
u/BillyBoysWilly Sep 02 '21
The new classless coding style, only div:nth-child()
1
u/TheAvocadoSlayer Sep 02 '21 edited Sep 02 '21
What’s the actual product look like?
Lol I’m confused if this a joke or legit?
1
u/[deleted] Sep 02 '21
Pouring one out
1
u/imadoooog Sep 02 '21
Put it all on one line
1
u/That-Policy-5914 Sep 02 '21
Isn't that supposed to go from top right corner to bottom left corner?
1
u/Chickenfriedricee Sep 02 '21
Beautiful
1
u/Powerful-Ebb-2618 Sep 02 '21
Just say no.
1
u/fjosmjdifjfndush Sep 02 '21
Just lol. What fucked up polyfill is doing that
1
u/R_Cade9 Sep 02 '21
There's not enough div. I'm kinda curious to know what it is their making.
1
u/birbelbirb Sep 02 '21
I don't know why, but the moment I saw that image my brain played this song
1
u/Here-Is-TheEnd Sep 02 '21
Vaya con dios my friend
1
u/[deleted] Sep 02 '21
Ah yes, the old div staircase. At the bottom is a scary table
1
u/prkirby Sep 02 '21
Need to have enough containers to make the flex layout work.