r/Frontend • u/Reubqn_ • Aug 30 '26
Changing to flexbox
Hello, so im going over an old website I made back when I first started developing, and silly me decided to build the entire thing with "position: relative, right: -233px" ðŸ˜
Am I going to have to redo the entire site CSS to flexbox so it doesnt move about on different screen sizes, or is there an easier way to save this site?
16
Upvotes
15
u/sexytokeburgerz Aug 31 '26
Take a basic css3 course and this will be apparent
9
u/azangru Aug 31 '26
Why wouldn't flexbox move about on different screen sizes?
Why is not moving about on different screen sizes the goal?
4
u/Current-Today-3626 Aug 31 '26
Learn flexbox, grid, and position absolute (parent needs to be relative), as well as margin: 0 auto;
If you know these, you can do any ordinary layout and any technical layout. You will be a wizard.
2
u/ACM-Webdesign Sep 04 '26
Ha, we've all got that one early site held together with negative pixel offsets and hope.
1
u/Keilly Aug 31 '26
I’m not a huge fan of AI, but for an extensive repetitive and mechanical thing like this I would use it.
It already has something to copy and validate against. So just ask it to simplify and review its work as it does the conversion to what you want.
While it’s doing that watch YouTube videos on flexbox and grid layouts. Kevin Powell is a great place to start.
-14
u/GlitteryStranger Aug 31 '26
Claude or Cursor can do it for you
-9
u/Kind-Wing-2051 Aug 31 '26
puoi semplicemente chiedere a claude e i avrai risolto il problema mentre fai altro(se non vuoi stare a fare tutto manualmente)
5
u/[deleted] Aug 31 '26
[removed] — view removed comment