Forums

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

Home Forums CSS Fit the whole container

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #251322
    gombroo
    Participant

    Hello,
    do you know why my gallery doesn’t fit the whole container?
    http://www.behatex.ayz.pl/galeria/
    Thanks!

    #251336
    Paulie_D
    Member

    I’m not entirely sure how this is suposed to look but I’d start with the padding and fixed widths

    #primary > div:nth-child(1) {
        padding: 3%;
        background: rgba(225, 224, 224, 0.3)!important;
    }
    
    @media (min-width: 1200px)
    resortica-lite.…r=27062016:862
    .container {
        width: 1170px;
    }
    
    #251337
    gombroo
    Participant

    Please take a look once again. Now the tiled images gallery fits 2/3 of the grey container instead of 100%.

    #251339
    Paulie_D
    Member

    I’m assuming you’re using some plug-in or somthing…the widths are hard-coded in the HTML…perhaps added by JS

    <div class="tiled-gallery type-square" data-original-width="640"
    

    and

    <div class="gallery-row" style="width: 640px;height: 320px;"
    
    #251340
    gombroo
    Participant

    It was Jetpack. But even if I paste a simple image (the blue one) – it’s still the same…

    #251341
    Paulie_D
    Member

    It seems clear you need to configure Jetpack somehow to your requirements.

    #251344
    gombroo
    Participant

    You’re right – it was Jetpack setting called “Photon – your images are automatically optimized for different display resolutions to serve the best possible image quality”. Thanks for your patience!

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