You'll Never Center A Div This Fast

  Рет қаралды 145,209

Hyperplexed

Hyperplexed

2 жыл бұрын

#shorts #css #jokes
Support the channel: ko-fi.com/hyperplexed (accepts PayPal, card, etc).
A brief history of centering a div. And a potential new way too?

Пікірлер: 57
@DennisUlijn
@DennisUlijn Жыл бұрын
Where’s my margin: 0 auto; ?!
@benjaminschneider
@benjaminschneider Жыл бұрын
It’s only horizontal not both.
@thethiny
@thethiny Жыл бұрын
​@@benjaminschneider still should've been discussed
@cristianjuarez1086
@cristianjuarez1086 Жыл бұрын
Needs flex
@MubashirAR
@MubashirAR Жыл бұрын
2034: everything is automatically centered
@chen-shen-yi
@chen-shen-yi 10 ай бұрын
3202: our monitor is an infinity space, so everything is the center.
@notmanciv5016
@notmanciv5016 Жыл бұрын
People who use
@Snortingcocaineofficial
@Snortingcocaineofficial Жыл бұрын
I use that lmao
@Magnogen
@Magnogen Жыл бұрын
It'd be great if css took a leaf out of the Android LinearLayout properties and added a "gravity: center center" line.
@IsaakWolf
@IsaakWolf Жыл бұрын
This mans making front end coding looking fun
@tabishnaqvi5748
@tabishnaqvi5748 Жыл бұрын
It is?
@pavelbrixi7773
@pavelbrixi7773 Жыл бұрын
@LambdaCreates
@LambdaCreates Жыл бұрын
2039: display:grid;place-items:center; That's the solution.
@Dev-Siri
@Dev-Siri Жыл бұрын
Well, I already have a 1 line solution that can work with any layout: div { /* Grid Way */ display:grid;place-items:center; /* Flex Way */ display:flex;align-items:center;justify-content:center; /* Transform Way */ /* I don't know the transform way */ }
@saidalachgar8837
@saidalachgar8837 Жыл бұрын
3 lines 🙂 Left 50% top 50% transform translate(-50%,-50%)
@Mukeshsainaidu
@Mukeshsainaidu Жыл бұрын
​@@saidalachgar8837 where do you learn css? I want to start Java script suggest me some best way
@saidalachgar8837
@saidalachgar8837 Жыл бұрын
@@Mukeshsainaidu KZfaq tutorials with real time practice
@ryan_765
@ryan_765 Жыл бұрын
That's literally the exact same as the video though, just put on one line
@cmdpromp
@cmdpromp Жыл бұрын
It's may 25 2023. Official year anniversary of this video
@orbe5533
@orbe5533 Жыл бұрын
Ahaha not enough, that be like my Digital solutions teacher
@neo-lj5nt
@neo-lj5nt Жыл бұрын
Where is the zero lines of code div?
@loismorellos4750
@loismorellos4750 Жыл бұрын
I even remember when we used a hack that takes advantage of display: table;. they were painful ol-days
@lordgiacomos2551
@lordgiacomos2551 Жыл бұрын
And yet, sometimes I still mourn the removal of the center tag in html...
@daometh
@daometh Жыл бұрын
XD if only.
@MineCrafterCity
@MineCrafterCity Жыл бұрын
10 years later and I still don't use flex
@Raevolpe
@Raevolpe Жыл бұрын
Update yourself then
@stysan
@stysan Жыл бұрын
October 10th is my birthday. This would be the greatest gift.
@happylilgoat6692
@happylilgoat6692 Жыл бұрын
People who use tailwind css:
@relaxingandy366
@relaxingandy366 Жыл бұрын
😂😂😂 Great 👍
@kwanele_dev
@kwanele_dev Жыл бұрын
2050: .div{ put: c; }
@a.anvarbekov
@a.anvarbekov Жыл бұрын
Lol, I actually tried this but no property like this exists
@kabeeki
@kabeeki 2 жыл бұрын
Lmaoo, funny vid
@Vichion
@Vichion Жыл бұрын
So I am not supposed create... @media only screen and (max-width: *) {} @media only screen and (max-height: *) {} ...for every pixel size and calculate... (body width - div width) / 2 (body height - div height) / 2 ....and pass in the result as margin-right, margin-left, margin-top and margin-bottom? 😂🤣
@edgeofhalo
@edgeofhalo Жыл бұрын
Know nothing of code. Love design. Vids are quite exemplary. Perhaps a short on your methods when using color, favorite scheme or fundemental of UI design.
@ArduinoTurkBatu
@ArduinoTurkBatu Жыл бұрын
or just "margin: auto;"
@sergiosanchez8349
@sergiosanchez8349 Жыл бұрын
You miss display block margin auto
@dracokinerek
@dracokinerek Жыл бұрын
We need a position attribute: .wrapper-6969{ positionX: 50% positionY: 50% }/*this is the positioning*/
@heesroy
@heesroy Жыл бұрын
savioooor
@gabrielzfr
@gabrielzfr Жыл бұрын
Margin auto mfs be like
@bijanmondal4639
@bijanmondal4639 Жыл бұрын
Want more videos ❤️
@mrhelpless
@mrhelpless Жыл бұрын
I'm 2008
@ikazuchi-san5772
@ikazuchi-san5772 Жыл бұрын
... Please dont do what I did, issajoke
@stysan
@stysan Жыл бұрын
me 5 years ago
@thethiny
@thethiny Жыл бұрын
Margin: auto auto
@average-team-kid
@average-team-kid Жыл бұрын
Bruh you really like divs
@thatghost281
@thatghost281 Жыл бұрын
wheres margin 0 auto and center element
@1jacques
@1jacques Жыл бұрын
Song?
@andrewwade4545
@andrewwade4545 Жыл бұрын
margin: 0 auto;
@sequelz
@sequelz Жыл бұрын
nope doesnt work
@yep2179
@yep2179 Жыл бұрын
@@sequelz It does
@sequelz
@sequelz Жыл бұрын
@@yep2179then my website doesn't work probably lol
@wlockuz4467
@wlockuz4467 Жыл бұрын
class="flex items-center justify-center" is my all time favourite 😄
@user-uj6lc2ql2p
@user-uj6lc2ql2p Жыл бұрын
Actually, display flex does not work
@nomzz8106
@nomzz8106 Жыл бұрын
text-align: centre; EZ
@andyc9902
@andyc9902 Жыл бұрын
Text aline center
@j.productions6951
@j.productions6951 11 ай бұрын
Can i have your email? Potential buisness opportunity. Couldn’t find it on your account
@0r94n1z3r
@0r94n1z3r Жыл бұрын
now get a load of "min-width: 0;" for a flex to work. Y? Css...
Building The Extraordinary Using Only The Ordinary
6:37
Hyperplexed
Рет қаралды 323 М.
This Website Theme Hasn't Been Perfected Since 1996
9:43
Hyperplexed
Рет қаралды 315 М.
ГДЕ ЖЕ ЭЛИ???🐾🐾🐾
00:35
Chapitosiki
Рет қаралды 6 МЛН
Each found a feeling.#Short #Officer Rabbit #angel
00:17
兔子警官
Рет қаралды 7 МЛН
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
Can I Beat The King Of CSS Again? - CSS Battle
12:40
Web Dev Simplified
Рет қаралды 246 М.
TypeScript Generics are EASY once you know this
22:21
ByteGrad
Рет қаралды 123 М.
I tried the polyrhythm trend
2:47
SpringySpring04
Рет қаралды 37 М.
I Fired a CSS Cannon at a Famous Streamer
3:28
Hyperplexed
Рет қаралды 411 М.
ImNotGoodEnough.js
11:11
Hyperplexed
Рет қаралды 887 М.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 171 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 135 М.
These Pesky Web Designers Have Done It Again...
5:24
Hyperplexed
Рет қаралды 350 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 431 М.
Using Web Design To Manipulate A Massive User Base
0:49
Hyperplexed
Рет қаралды 1,3 МЛН
ГДЕ ЖЕ ЭЛИ???🐾🐾🐾
00:35
Chapitosiki
Рет қаралды 6 МЛН