Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Need help with the responsiveness of my CSS project

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #273299
    ericmita
    Participant

    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!

    #273300
    Paulie_D
    Member

    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”.

    #273301
    ericmita
    Participant

    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.

    #273304
    Paulie_D
    Member

    Try researching “media queries” and, as I said, don’t use fixed pixel values.

    #273337
    WayneKenney
    Participant

    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
    {
    }
    }

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.