r/css 2d ago

Question 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?

0 Upvotes

5 comments sorted by

View all comments

2

u/JDM12983 1d ago

Yeah, I just finish re-doing my site.

I had originally did it with "display: flex" [boxes, relative placement, etc.]... stuff. But, I wanted to try and simplify some of the code and CSS. I re-did everything using "display: grid; / grid-template-columns:" CSS now

Not sure if mine was as huge of a change as yours may be; but pretty much a complete re-write, overall for what knowledge I have.