Website responisve

Hi, i started my journey towards fullstack developer about 3 weeks ago and i accepted to create a website for a relative but i run into a problem with website responsive, i don't understand how to do it properly and i have to finish this website to be able to fully dedicate my time towards programing , i used only html and css and i will put my github repo here, could someone please help me finish this project, the website looks good on the desktop version for a 2k monitor because this is the monitor i use but on anny other resolution the design goes apeshit https://github.com/Apophis96/europ-trans2 this is my repo and this is the deployment https://apophis96.github.io/europ-trans2/
GitHub
GitHub - Apophis96/europ-trans2
Contribute to Apophis96/europ-trans2 development by creating an account on GitHub.
8 Replies
majkl
majkl4mo ago
How much are you familiar with media queries? Generally, the best practice is that you start with mobile layout (basically all in single column) and then add breakpoints and rules for wider devices ... such as @media (min-width :600px) { /* css for tablet portrait */ } @media (min-width :960px) { /* css for tablet landscape */ } @media (min-width :1200px) { /* css for tablet desktop */ } ...where you override the mobile CSS rules (all in single column) with "stuff more in rows next to each other".
apophis96(Edi)
apophis96(Edi)4mo ago
I'm not familiar with media queries, i found out about them when i started to do reasearch about website responsive but i don't understand them verry well, a thing i found out is that i have a loat of widths and heights declared in my css and that can mess up the responsive of the site. From your message i understand that i should include this tags in my css and add all the tags i want to be changed for diferit devices, no?
majkl
majkl4mo ago
Exactly. These media queries, the breakpoints, are the "loat of widths". You do not need to worry about heights. Add them to your CSS and then add h2 {color:red; } in one of them. Your current style will act as a mobile (h2 will be black if screen is small), but will turn red as soon as the viewport width goes over the width treshold specified in the @media breakpoint.
apophis96(Edi)
apophis96(Edi)4mo ago
Thanks, i'm working on it and i will come back with an update
majkl
majkl4mo ago
Have a look at ome of the "responsive webdesign for beginners" YT vids and play around to understand the CSS cascade.
Jochem
Jochem4mo ago
(also, Kevin has a free course called Conquering Responsive Layouts https://courses.kevinpowell.co/conquering-responsive-layouts)
apophis96(Edi)
apophis96(Edi)4mo ago
Thanks to the awesome help from members of this community, today I was able to deliver my first project to my client, just three and a half weeks after I started learning programming. Thank you @cubiq, @smileyface (c34), and to everyone else who taught me how to finish my project.
Vaarun Sinha
Vaarun Sinha4mo ago
I became so confident in css after this one coming for backend background
Want results from more Discord servers?
Add your server
More Posts
How to display content in a separate smaller window while still being on the main page?Hello everyone, I am designing a desktop app using Electron and React. I would like to display someHaving trouble centering nav bar with content on right/ nav bar shifts depending on text lengthI've created a demo here: https://4c6584fa.portfolio-8nc.pages.dev/ At the very top I am having troNeed help fixing a glitch with my buttonI'm not sure how why its doing what it's doing but whenever I hover and then hover off the btn it do<div> cannot appear as a descendant of <p>. at divGuys help me I am a beginner in JS Some one help me how to solve this error plz Warning: validateDOKey and Code values for "enter" key in mobileMy project isn't working on mobile devices. On desktop, it works when the user press "enter" or "bacbackdrop filter cannot work on firefoxi deployed this webon vercel , some errors occur when I hover on "Product" and the text does not appIs there another way to do this?I want to generate a random word, when the users enter the site I want it to generate a random word,General input on relational db schemaAssignment job listing website database, does this look good enough?How to optimize for embed videos?I have multiple videos I have showcased on my website but they look awful. I'm using the imagekit CDTransparent Button Background with Gradient Text and Border Effect - Hover ProblemAs a beginner in CSS, I've been learning for a few months now, and I recently encountered an issue w