- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello,
Im trying to build a webpage but I get stuck when its about its responsiveness. Can you help me?
Below is my code:
https://codepen.io/eric-m/project/editor/Xxkrxr
Thanks!
Perhaps you could clarify what you mean about “responsiveness”.
What exactly is the issue?
We don’t need the whole codebase, just enough to demonstrate the issue.
These sorts of queries usually break down to “don’t use fixed pixel values, use percentages”.
The issue is that the page is not responsive. More exactly, I want the width and the height of my elements to adjust depending on the screen resolution of the device that is accessing the page.
Try researching “media queries” and, as I said, don’t use fixed pixel values.
The scaling’s a little off at 1080p and higher. You’re using a lot of static pixel values when you should probably consider percentages.
If you want to continue using static values then definitely use media queries:
example: @media only screen and (max-width: 550px) {
.overview
{
}
}