larkbegin

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Header Image not Centered on Tablet version #151023
    larkbegin
    Participant

    It sounds like there may be a CSS issue with how the header is being handled for different screen orientations, specifically for iPads in portrait mode. Try the following CSS adjustments to ensure the header centers properly:

    Option 1: Flexbox (Recommended)
    Copy CSS code
    header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    }

    Option 2: Margin Auto (If Flexbox Isn’t Suitable)
    Copy CSS code

    header {
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    }

    Option 3: Media Query for iPads (Portrait Mode Fix)
    Copy CSS code

    @media screen and (max-width: 768px) and (orientation: portrait) {
    header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    }
    }

    Let me know if I can help you further.

Viewing 1 post (of 1 total)