Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "vertically"
-
Front-end developer's to-do list :
☑ Climb Everest
☑ Learn how to speak mandarin
☑ Become god
◻ Vertically center something in CSS20 -
Time spent on Web Development :
1% : {
actual productive content and features
}
99% : {
Please. All I want is for this div to vertically align in this other one. Is that too much to ask?
}13 -
*me, coding at a pub*
*random dude walks up to me*
He: "what are you doing? Programming? What?"
Me: "yup. That's a horizontally and vertically scalable webservice, that's using amqp, rest APIs and encryption to schedule starting, stopping and autoscaling of a total of 90 heroku applications. This webinterface *showing* allows you to trigger starts and stops manually and monitor all processes."
He: "oh, so you are programming a Website? In HTML?"
Me: "euhm........ Yes."
I understand this dude had probably no clue what I was talking about.. Yet I am angry at him. Reducing more than 12k loc to HTML... Go fuck yourself.22 -
html {
design: responsive;
}
I fucking hate frontend webdeveloping... It was all nice! Vertically aligning items using flexbox etc... But then God said, "let there be cunts who use unsupported browsers!"
FUCKING HELL I HATE IT12 -
TABLE BASED WEB DESIGN
I was surprised there were no rants about this topic before I realized it was more than a decade back 😳
We've never had it better! So to help add a little perspective for all those ranting about what is unarguably the golden age for web developers... let me fill you in on web dev in the late 90's;
JavaScript was a joke. No seriously! - I once got laughed out of the room for suggesting we try use it for more than disabling a button - (I wanted to check out the new XHR request thingy [read AJAX]).
HTML was simple and purely a markup language (with the exception of the marquee tag). The tags were basically just p,ul,ol,h*,form inputs,img and table and html took 10 minutes to learn. Any style was inline and equally crude - anything that wasn't crude could not be trusted and probably wouldn't render at all in most browsers (never mind render correctly).
There were rumors of a style TAG and something called a cascading style sheet which were received with much skepticism since it went against the old ways and any time saved would be lost writing multiple [IE version specific] style sheets for each browser just to get it to work - so we simply didn't.
No CSS meant the only tags you had to work with to create a structured layout were br, hr and table... so naturally EVERYTHING was in nested tables! JS callback hell can't touch this! - it was not uncommon to have 50+ nested tables all with inline style in a single page which would be edited without any dev tools or linting.
You would spend 30 minutes scanning td tags until your eyes bled to find something, make a change, ftp the file to the server, reload the web page and then spend 10 minutes staring at the devastation on your screen convinced you broke
the internet before spotting an un-closed td tag with your bloodshot eyes.
Tables were not just a silver bullet - they were the ONLY bullet and were in the wild west!
Q: Want an inline form or to align your inputs left?
A: Duh table!
Q: Want a border with round-corners, a shadow or blur?
A: That's easy! Your gonna want to put that table in the center cell of another table then crop a image of the border into 6 smaller images to put in the surrounding cells... oh and then spend 10 minutes fucking with mystical attributes like cell-padding and valign to get them flush.
...But hey at least on the bright-side vertically & horizontally centering stuff was a breeze!22 -
This rings so true. I'm a full stack backend engineer except it was today I managed to vertically align something in css🤣 which are you?10
-
No matter how many times I learn how to center a text vertically in a div, every time I have to spend half an hour just looking for a solution17
-
When did “responsive“ web design become synonymous with “huge f*cking images, big ass captions and needing to scroll vertically forever“?!
Although sites like that may look good on tiny mobile screens, on desktop screens they are just freaking me out. I am not blind, nor am I too stupid a visitor to handle denser paragraphs of text in a more sophisticated kind of layout! Geez...8 -
Open source block chain neural network binary tree growth hacker synergy vertically integrating cryptocurrency game changing GDPR compliant internet of things node.js quantum computing start up that'll disrupt and pivot the cloud based ecosystem11
-
Oke so this just happened...
Spent 30 minutes figuring out why the f**k a div was vertically centered within another one.
Apparently margin:auto within a display: flex not only centers horizontally but also vertically.
I remember the days when i spent hours vertically centering sh*t. What universe are we in?12 -
It's sooooo frustrating when a client forces me to make a design vertically fit in their own screen size. "Everything doesn't fit on my screen without scrolling" :(2
-
During mockup presentation where everything is perfectly vertically aligned:
Dev: "How should the surrounding content behave if the article is longer?"
Designer: "That won't happen."3 -
While I struggle in vertically aligning to centre,
Someone made a moving bicycle using only css:
https://codepen.io/AlbertFeynman/...18 -
I DID IT :D
I VERTICALLY ALIGNED A DIV IN CSS
I'm a noob in front-end development, I usually use bootstrap but now I did it in vanilla CSS inside ReactJs =D
or is it lol, I don't know, I used these:
position: "relative",
top: "50%",
transform: "translateY(-50%)"
source: https://stackoverflow.com/a/441616615 -
How to vertically center in css..
set "text-align" to center and then rotate your screen by 90 degree. :D6 -
Do NOT "compress" your code by leaving out braces in control structures and putting the 300 char statement on the same fucking line as the control structure!
Yes, your code file becomes vertically shorter than the usual 3000 lines, BUT my brain tumor proportionally grows larger.7 -
It's 2017.
Why is vertically centering a div still so stinkin hard?
Yeah yeah ik what you will tell me, "use flexbox".
Well guess what,. I HAVE BEEN TRYING TO FOR THE PAST 6 FUCKING HOURS!
I've gone as far as to copy code from 20+ different websites advertising working solutions. My tab bar looks like the fucking rockey mountains!
My main problem is that flexbox on chrome is not accepting ANY % values.
Now if you'll excuse me, I need to go kill myself. YAY! 🤗29 -
When someone makes fun of UI development, and you challenge him to vertically center align a div. Challenge accepted and lost :D9
-
1. Understand APIs without reading documentation.
2. Write correct code from first try.
3. Know to program in every language.
4. Create the perfect fully functional AI system.
5. Center objects vertically with one line CSS at target object.3 -
Turning my 27" monitor vertically was the smartest thing I did all year.
There's so much space now that just using it makes me happy!
That only drawback is the 1080p horizontal resolution which is not enough for many sites to fit without zooming out.
I feel like I will soon persuade myself to buy a 4K monitor...4 -
Microsoft after changing the toolbar buttons layout in Outlook from horizontally aligned on the bottom to vertically aligned on the left edge:
"Yeah there is absolutely no way to fit the To Do and the Notes buttons together with the other three on the left edge. We need a popup menu there!"10 -
Just got into web development.
Y U NOT WORKING RIGHT?
How do you guys make really complex websites when I can even center an unordered list without the first child...
I write something like align-vertically: center;
And what does it do? NOTHING!
And if it does something, it mirrors the whole page, makes it all bright pink and then everything explodes and I'm alone in a dark void, only me and my PC are there and somehow I have access to the internet.
And then I look it up at stackoverflow and I'm like: Oh, ok, I'll do it this way then.
And it still doesn't work and does absolutly nothing!
So I'm trapped in this void of nothingness till the end of my days.
At least that's what it feels like.9 -
Personally I am starting to think that any development tools, resources and sites should not be allowed to use marketing dribble.
It should go
-> Land on home page
-> Hi, we are a realtime database cloud host
-> no you cannot host it yourself
-> here is code to speak to our servers
-> here is the cost
->now take it or go.
Something like that, and not
We provide clients with the leading cloud and hosted data solutions that can scale vertically and horizontally on and offline data management keeping people connected and saving kittens.
Fuck you show me one kitten you saved? Lying pieces of shit that do not want to just say hey this is what we have , this is ours, it may not be much but it is what we believe in and if you would like to use it here is how , thank you now move the fuck along our server can't handle so many concurrent connections.2 -
I heard good things about Edge recently and thought that I should give it a try for a few days.
I’ve opened the same pdf file in multiple Edge windows and and tabs, each scrolled to a different page.
#1
The middle-mouse button scrolling is broken on half of the windows and tabs. You press the button, you see the scroll mouse curser. But it doesn’t scroll.
#2
Scrolling horizontally to an area which wasn’t visible before, the content there is extremely blurry. Scrolling vertically to different pages doesn’t fix it. Is it the pdf? No. It’s just Edge. Zoom in and out again and the blurriness is fixed for now. Until it comes back later on a random page.
#3
Duplicate another tab and suddenly it crashes all of the tabs and windows of Edge. Now I need to open them all again and scroll to the positions that they were before…
If you think that it was just a one time issue, you are wrong. All of them happened multiple times and after Windows reboots.
I’m back to Firefox again.4 -
Things I wish people had said at my first job (in light of lots of the people I see starting their first dev gig on here). Please add yours.
Congrats!
Take a breath, you will be fine.
If you get frustrated, take a moment to collect your thoughts.
Don't be afraid to say you don't know, you are not expected to know everything.
Your workday needs to end at a decent time. Don't overdo it or you will be useless for more of your hours.
Always take whatever length of time you think something will take and double it. If you think it will take 15 minutes, it'll probably take your 4 hours.
Concentrate on networking and personal relationships.
Pick the smartest people who have moved the most vertically and pay attention to what they say, they might know a lot.
When management makes an "unwise" or "crazy" decision, ask them why or what the context or motive is that made then arrive at that course of action. Some of them might surprise you in their bigger picture motives or dumbassedness.
Six sigma may be in your future, learn what it is.
Automate as much of your own job as possible.
Um, that's all I've got for now. Hopefully that's helpful to people just starting out. Feel free to add yours.5 -
The client in my previous rant asked me to overhaul their whole internet radio system in three days.
So I went on and install RadioDJ, which needs MySQL, which also needs .NET framework. And an encoder is needed to convert the RadioDJ's output and port it to the streaming host, ShoutCast.
Oh, and every software install needs the network admin's permission.....which won't be here until end of next week.
And here I am, in their broadcasting room on a Sunday, trying to download everything that I can so the admin can install it.
On the bright side, that stupid icon is finally vertically centered.2 -
It's 2017 and every keyboard on Earth still has vertically unaligned keys !
And if you think it's for ergonomic reason, you're wrong ! It's just something we inherited from goddamn typewriters.
It's time to let that go !
Far far away in the past.
Right next to floppy disks, MySpace and Nicolas Cage !6 -
Handed over my first client's project today.
It was revamp for an internet radio site and also the first project that I used Bootstrap 4 in. On top of that, it was the first time I have to deal with PHP and its loops.
Despite audio player errors (somehow, they lost access to the streaming host and hence no audio source), I'm more or less satisfied with the final outcome.
But wait, why that stupid icon is not vertically centered? -
Smartphone camera applications need to show this notification whenever a user records a video vertically.
Otherwise, many smartphone users will never learn to drop the vertical filming habit and to film horizontally.
This is a major benefit of dedicated cameras and camcorders: their user interface is aligned for being held horizontally, so people do so habitually. This is not the case with mobile phones.4 -
After a week of logs investigation, we finally found a solution for performance issue. Just scaled up the app vertically to the next tier plan in Azure.4
-
My new setup.
The conputer on the left is the new and first comouter i built.
Im looking to invest in an extra screen that tilts vertically and 2 GPUs.6 -
I am sick of misrotated videos.
Sometimes, the phone camera software saves a video vertically because the user hits "record" before the software has detected that the user is holding the smartphone horizontally, because the software stupidly launches in vertical orientation by default.
So the software wants the user to wait until it has finally detected horizontal orientation, which causes the user to miss out on a moment.
How about the camera software actually saves the video in the orientation it was recorded in for the most time, rather than only the beginning of the video?
If I can think of this idea, billion-dollar companies surely can.
In the meantime, misrotated videos can be fixed using this ffmpeg command on Linux or Windows:
ffmpeg -i input_file.mp4 -metadata:s:v rotate="0" -c copy output_file.mp4
And if the phone was held with the home button to the left side:
ffmpeg -i input_file.mp4 -metadata:s:v rotate="180" -c copy output_file.mp4
This solution is superior compared to using -vf (video filters) because it only touches the metadata of the video. No re-encoding. This means no quality loss and no CPU/GPU power needed to process the video again. It just passes through.10 -
So, the last days I saw a few posts here about binary clocks. Somehow I wasn't able to read them, until I read a comment they had to be read horizontally.
As far as I know binary clocks are supposed to be read vertically. Am I missing something? 🤔5 -
So we started a new Unity video game project for mobile in June 2021. Hooray!
Being a mobile project, one of the earliest things we think about is scaling the interface across all sorts of device screen resolutions and aspect ratios, right? Well, to preemptively solve this problem early on, I decided to letterbox the game view - just choose one aspect ratio for the game and pad black bars to the sides of the screen. Simple, solves the game's world space problem without trying too hard, and it automatically adapts to Android's split-screen mode.
I showed the early builds to management as well as game design team and they gave me some general nods. Sounds like green light ahead. I spent the next few months building the game logic and scale the UI around a consistent letterboxed game view. If you had experience scaling Unity UI to a letterboxed area, you should already knew that it takes a whole paradigm of its own that's kinda hard to break out of, but the fact that it stays consistent across all screen aspect ratios is so worth it. Regardless, the biggeer benefit of letterboxing is simpler world space setup. You don't worry about whether this particular area will be overflowed horizontally or vertically in a particular device or not. You have a 9:16 window to view the world through, nothing needs to move at runtime and that's about it.
Fast-forward to early September 2021 and 40+ builds later, the GD started having concern that the playing area is not filling up his phone screen and that the letterboxes are bothering him. He wants to get rid of the letterboxes and wants the game world as well as UI to fill up his screen.
Yes. After 40+ builds, for all of which the letterbox was present, nobody in the project raised a concern about the letterbox. It's only NOW that they all of the sudden side with the GD and demand the removal of the letterbox. I feel like almost half of my effort on this game has been wasted. These clueless guys didn't spend one second looking at the early builds thinking of the possibility that the black bars at the top and bottom of their phone screens (which I repeat: has been around since the very first build) is gonna bother them? Somebody must be playing a cruel joke at this company. They had all the chances to bring this up as a potential issue and TODAY is the first time I hear of it.
See, designers. You waste our time and your time by doing this kind of thing. Please raise your issues early. Complain to us ASAP. If you wait for so long before raising an issue that has been in-your-face the whole time, I can't fault any developer for assuming you're trying to play a long prank. I can tell designers right now: it's not funny.1 -
Vertically aligning text with CSS is the bane of my existence.
Say what you will about tables, valign="middle" never let me down, and I could move on to shit that's actually interesting!1 -
Some image viewers on smartphones let the user delete photos and videos by swiping them off the screen vertically. This causes the risk of it happening accidentally. Someone must have thought this is a smart idea.
If a gallery application has this anti-feature, I will immediately stop using it and install a third-party one without swipe-to-delete.4 -
Been trying to make React Native / SDK / Installing React components/ to work properly the whole day. After many hours I got it running on my phone to start working with a camera app idea i have.
Guess what.
When you take a photo with the phone oriented vertically, it takes an horizontal photo.
YES.HELL.5 -
When you can't vertically align text because it breaks - webkit-background-clip and only way to do that, is setting line-height same as container height.1
-
I swear I'll snap if someone tells me it's weird that I resize applications to be taller than they are wide. I keep them that way because widescreen monitors came into existence when computers became mainstream and the market shifted to the plebs who only used them to watch videos and wanted to not see any bars on screen, and now we all have to suffer.
Web pages are organized vertically so it makes no sense for me to browse the web in full screen, it wastes space where otherwise all the content is contained and distraction free, most pages strip the side-bars so you'll also see a few less ads. I can also use and organize multiple apps how I want. Small thing too but browsing the web in full screen means pages can find the exact dimensions of your screen and learn more about you (I don't care about this but it's also worth mentioning).
I promise you there are so many good reasons to not use apps in full screen.
Thank you for coming to my Ted Talk.17 -
Does anyone know if anything special is required to vertically center a div in Firefox?
It works perfectly fine in chrome and IE and Edge and freaking everything else!!12 -
The ability to vertically align in css correctly. On my first try.
That would save me a world of headaches... 😒5 -
Just spent 30 mins vertically centering a damn image in a two-column Bootstrap row. Yeah, flexbox is great unless you want to stack the columns at mobile screen size like they do with Bootstrap normally. Then everything breaks and the original ugly hack just gets replaced by a slightly lesser evil.
I really hope that we sort this out somehow before colonising Mars.5 -
To all who use CSS:
Do you vertically align using flexbox or some weird old hacky method? I just used flexbox throughout a personal project to find out it doesn't work on my mom's computer...
Sorry if this question is too serious for this, but it really bothers me :D12 -
I was determined PHP advocate, always ready for debate with PHP criticizers. I am stacking with dozen other languages so I used to think I have all right to do just that. My code is fully OO, I used to scale FPM horizontally, eventually, with help of pthreds even vertically. With help of redis and chaching, I thought I was sorcerer, as I always find a way (or way around) to make things work, things that no one used to beleive it's possible. One day I started to work for language engineering company, when I suddenly realized how PHP often fails with it's come to localizations, translation, exotic charsets and over all multibyte operations. :( Whole this thing collapses. Wholes everywhere...3
-
Make sure your software does not lose data when improperly quit, and does not allow deletion without a proper confirmation dialogue.
I have experienced pre-installed voice recorder applications that leave behind an unsalvageable corrupt file if the smartphone shuts down due to running out of battery charge, or powers off due to battery undervoltage (as a result of an aged battery).
As often, third-party software beats pre-installed software, and the voice recorder "ASR" by "NLL apps" leaves behind a playable file when unexpectedly quit. Might be because it uses the OGG vorbis format rather than M4A or 3GP audio.
Also, the camera software of the Samsung Galaxy Pocket smartphone from 2012 (which was crap anyway) would discard a video file if the recording was quit through the "back" navigation key.
Perhaps this was done deliberately, but it is a terrible idea due to the possibility of accidents happening.
Some gallery software for Android lets the user delete photos and videos by swiping vertically. After this, a so-called "toast" notification appears with an undo button. If not responded to within seconds, or when tapping next to it due to stress, the photo or video is gone. This is, needless to say, terrible design.2 -
!important;
Using bootstrap I want to create a table so that the thead is fixed and no matter how many rows are generated on loop , the thead will align properly with the tbody. I will keep the thead fixed so that only body will scroll vertically.
So the problem is on a responsive table how do I match the cell alignment and spacing of the head to the body cells.
Have wasted a day on this fed up. P.S on smaller screens I have set overflow to scroll vertically. Please help.10 -
Tonic is the most fucked up app on iOS. It just straight up internally dies. As soon as you try scanning the piano it scans it in the wrong plane and doesn’t scan like the picture wants it to. Then it asks you to map the first key of the piano and it moves the key vertically instead of horizontal. If you scan it the other way it does the opposite plane. I just want to try a cool app for my phone and you call your app a functional app. How.
-
Where's vscode for browser tabs?
Like, I just want 1 browser window, and split it, resize the windows, split them horizontally vertically etc.. ? Is there a browser that does this?
I feel like you could basically use iframes but yeah!10 -
So for quite a time I've been trying to understand what does it mean to center a div 'vertically', I googled it but it returns only solutions to center it 'vertically', can anyone explain what does it mean to center it vertically?11
-
That feel when you find that one font that both looks good and renders ponysay's ponies well ... yet the powerline glyphs are vertically offset T_T
(It's Fira Mono for Powerline btw.)1 -
I'd like to ask peoples opinions on building cross platform apps. So basically I'm on windows, and these insatiably annoying project leads (I fell for the "you code make me an app" one) want it to be cross platform. My first thought was PWAs, but then read that apple are dicks and some of the most important features are not actually supported (#!@?). So then it's ionic or Cordova, but who likes CSS? Or Angular 2? And for a native experience, I'd want to follow both iOS and android design patterns in the same codebase which is way beyond my pay grade. React native comes from Facebook, so I already hate it. Should I just build an android app and cross the iOS bridge later or build a not very native feeling, not vertically centred cross platform Cordova thing? Anyone who's had experience using Cordova care to comment on their successes / failures?13
-
I recently joined a project team in my company whose client is a BIG (and I mean BIG) tech company.
We offer marketing solutions to the client. This means we create websites that showcase the company and all the good stuff that they do.
When I was going through my ramp-up meetings, my lead gave me some dummy projects to build just to get an idea of where I stood as a web developer.
So, it was one of those Photoshop mockups that were to be made entirely using vanilla JS, CSS3, HTML5 and nothing else.
There came many points where I had to align items either horizontally or vertically. So, I used flexbox to do it.
I submitted my code to the lead and while going through it, he commented, "Why do you use flexbox? It is no good. Use float instead." And I looked at him in utter confusion.
Tell me, is it wrong to use flexbox? Should I have used float instead? -
It's all about asking the right question...
Original question that has had me stuck for years: "How do you load landscape images as landscape and not portrait? (some sort of default, always loads it with the longer dimension vertically).
A new insight that I got today while using one of these apps: "How can I rotate an image after it's loaded?"
Very easy apparently...
As long as you keep track of the current angle, just reload and set a Rotation property to (current + 90) % 360...1 -
curse you Firefox!!
Strangle yourself and die in a corner...........
For the longest time, a div was not centered vertically in Firefox even though it worked perfectly fine in Chrome and Edge......
Set parent height (who is using flex) to 1% and boom, it works now as expected.....
WTF!1 -
What does vertically alligning a div even mean? I just use the margin-top and margin-bottom properties :/1
-
Today, I went on the history of devRant that earlier how people used to post undefined rants. Even some who have knowledge can do it now!
I searched a lot about devRant on different media and got some bits
Here @AlgoRhytm asked a question on stackoverflow
https://stackoverflow.com/questions...
I kept reading there chatlogs
Many people joined and left this community (Sounds too bad). We lost many legends like @Linuxxx, @Skayo and more and more.
But still there are many good one remaining from ages like @Root, @Jilano, @theabbie and more and more
I don't know what I am conveying to you people but I will try my best to stay tuned with devRant because I love it.3 -
tests boy
- balding in his late twenties
- thinks that React is a framework
- favorite book is either 1984 or fight club
- came to IT to make an impact but obviously lacks determination to do so. Prefers not to think about it
- doesn’t know why and for what he wakes up every morning. Stopped thinking about it 7 years ago
- has a girlfriend that doesn’t allow him to penetrate her, only hugs and cunnilingus
- already forgot how does a blowjob feel like
- when it’s too hot in his room when he tries to sleep, he gets up and opens the window, and after that he doesn’t want to sleep anymore, and tomorrow is a yet another working day
- unexpected slack message sound he hears when not at the office triggers his fight or flight response
- still salty about CSS vertical-align: middle not instantly centering the element vertically
- just like 5 years ago, every day he thinks that after he learns That New Thing, he’ll begin The Real Life, and his current career state is temporary
- loves to say “it’s not my job” but only says that if absolutely sure that he won’t be reported for that
- uses vscode
- thinks he’s an engineer1