• This is my CSS:

    /* Parent Container for the Logo */
    .logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 60px;
    z-index: 1;
    }

    /* Logo Container */
    .logo-container {
    position: absolute;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 90%;
    box-sizing: border-box;
    }

    /* Logo Styles */
    .logo-container img {
    max-width: 100%;
    height: auto;
    display: block;
    }

    /* Responsive Styles */

    @media (min-width: 3840px) {
    .logo-container {
    top: 5vh;
    left: 43%;
    }
    }

    /* Large Screens (2560px and 3840px) */
    @media (min-width: 2251px) {
    .logo-container {
    top: 6vh;
    width: 55%;
    }
    }

    /* Desktop and Large Screens */
    @media (min-width: 1200px) and (max-width: 2250px) {
    .logo-container {
    top: 8vh;
    width: 45%;
    }
    }

    /* Tablet Screens */
    @media (min-width: 768px) and (max-width: 1199px) {
    .logo-container {
    top: 10vh;
    width: 60%;
    }
    }

    /* Small Mobile Screens */
    @media (max-width: 767px) {
    .logo-container {
    top: 8vh;
    width: 50%;
    }
    }

    /* Extra Small Mobile Screens (360px width) */
    @media (max-width: 550px) {
    .logo-container {
    top: 8vh;
    width: 80%;
    }

    .logo-container img {
        max-width: 100%; 
    }

    }

    And it seems it does not work on my different pages. The only thing that is different on the other pages is just text. So even if I align it right on one page, it doesnt align right on the other page. Think I struggled with this for 500 hours now….

Viewing 2 replies - 1 through 2 (of 2 total)
  • A link to the affected page might help better than just the CSS code.

    Thread Starter robelo2

    (@robelo2)

    Hi! Sorry I have no clue how to make it online. But I somehow managed to make it responsible on all pages by deleting some duplicates in my CSS. But I still have trouble cause the Logo is following while scrolling down the page. I set the logo-wrapper to relative and the logo-container to absolute.

    Although I cant share a live view of the site, I can share the full html and CSS I use. I use a custom made theme using underscores which I downloaded from github.

    My header.php : https://pastebin.com/fL2ZN1ux
    My functions.php: https://pastebin.com/tnbL23pX
    My full css: https://pastebin.com/EQE5sJF8

    I have tried making it online earlier, but it seems its not so easy and maybe I need to open ports etc. I also use Linux Mint as OS which I am not so comfortable with.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.