Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Fatima,

    Add this CSS to Appearance > Customize > Additional CSS

    #pg-9555-0 .panel-row-style-for-9555-0 { background-size: contain; }

    This will work only in this page main banner section https://kitchentek.com.au/kitchen-renovations-sydney/

    Regards,

    Thread Starter fatimashaz

    (@fatimashaz)

    Thanks for your help this code did worked but created a big white space on left i need to apply it here

    element.style {

    1. background-image: url(https://kitchentek.com.au/wp-content/uploads/2025/04/Hero-Banner-1-1920×1080-1.jpg);
    2. padding: 70px 45.5px;
    3. background-position: 50% 48px;
    4. margin-left: -45.5px;
    5. margin-right: -45.5px;
    6. <here need to apply the code image size:contain;> } just i dont know what to write for element style

    Hi,

    In that case, you can use the following:

    element.style {
    background-image: url(https://kitchentek.com.au/wp-content/uploads/2025/04/Hero-Banner-1-1920×1080-1.jpg);
    padding: 70px 45.5px;
    background-position: 50% 48px;
    margin-left: -45.5px;
    margin-right: -45.5px;
    background-size: contain;
    }

    I hope, you know what to replace with element.style

    Thread Starter fatimashaz

    (@fatimashaz)

    Thanks Riffaz for your help. this is where i am stuck at i dont know if its a silly question but i am totally blank for what to what to replace with element.style . If you could please guide me will be a big help.

    Regards
    Fatima

    Thread Starter fatimashaz

    (@fatimashaz)

    Hi Riffaz could you please guide me about how i can find the element.style to replace with. help really appreciated

    Regards

    Fatima

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Header and slider image-background size contain’ is closed to new replies.