>make a simple website where all content is in one div in the middle >looks good on pc >look at mobile >everything is on the left >no matter what you do in css, the block is to the left
I'm so fucking angry. Cant even fucking use . I last made a site in like 2010 and it was so much easier, just splurted wherever I wanted it. No idea what I'm doing wrong, I'm using flexboxing.
So you know nothing about CSS and still whine like a little bitch here? Get off Any Forums retard
Landon Martinez
You're the one whining because you're coping with this CSS shit. Go on, rot your brain with this. Not even like it's good for anything.
Nicholas Torres
You did nothing wrong, buddy. CSS is shit and that's not your fault.
Jordan Wright
try width: 100%; on the body
Joshua Bell
remove all the flex stuff, then margin: 0 auto on .mainblock
Juan Jones
again I'm not a webdev, I work on desktop applications, what are you trying to do? Why are you using width: 68%;? And why are you so angry. I just removed the width and now mainblock is in the center. You placed a flex on the body, then embedded the mainblock inside the body in another flex and gave it a smaller width.