Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:40:49+00:00 2026-06-12T16:40:49+00:00

I have a list such like below, in Firefox the images actually scale along

  • 0

I have a list such like below, in Firefox the images actually scale along with the browser width, but in Chrome when I resize the images stay the same size and the <li> sections just fill with white space. See what I mean here

html

<ul>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
    <li><img src="http://distilleryimage8.s3.amazonaws.com/23ddf3860e2911e29c2d22000a1e9e7e_6.jpg"></li>
</ul>

css

li img{
    display: block;
    height: auto;
    width: 100%;
    float: left;
}
@media screen and (min-width: 307px) and (max-width: 440px) {
    li{
        float:left;
        width: 50%;
        height: auto;
        display: inline-block;
    }
}
@media screen and (min-width: 440px) and (max-width: 480px) {
    li{
        float:left;
        width: 50%;
        height: auto;
        display: inline-block;
    }
}
@media screen and (min-width: 480px) and (max-width: 612px) {
    li{
        float:left;
        width: 50%;
        height: auto;
        display: inline-block;
    }
}
@media screen and (min-width: 612px) and (max-width: 767px) {
    li{
        float:left;
        width: 33.3333%;
        height: auto;
        display: inline-block;
    }
}
@media screen and (min-width: 768px) and (max-width: 901px){
    li{
        float:left;
        width: 33.3333%;
        height: auto;
        display: inline-block;
    }
}

@media screen and (min-width: 901px) and (max-width: 1024px) {
    li{
        float:left;
        width: 25%;
        height: auto;
        display: inline-block;
    }
}
/* Desktops and laptops ----------- */
@media only screen and (min-width : 1024px) and (max-width: 1079px){
    li{
        float:left;
        width: 20%;
        height: auto;
        display: inline-block;
    }
}
@media only screen and (min-width : 1079px) and (max-width: 1224px) {
    li{
        float:left;
        width: 20%;
        height: auto;
        display: inline-block;
    }
}
@media only screen and (min-width : 1224px) and (max-width: 1530px) {
    li{
        float:left;
        width: 20%;
        height: auto;
        display: inline-block;
    }
}
/* Large screens ----------- */
@media only screen and (min-width: 1530px) and (max-width : 1824px) {
    li{
        float:left;
        width: 16.6666%;
        height: auto;
        display: inline-block;
    }
}
/* Large screens ----------- */
@media only screen and (min-width : 1824px) {
    li{
        float:left;
        width: 11.1111%;
        height: auto;
        display: inline-block;
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:40:50+00:00Added an answer on June 12, 2026 at 4:40 pm
    @-moz-document url-prefix() {  
        li img{
            width: 100%;
            max-width: 100%;
        }
    }
    
    @media screen and (-webkit-min-device-pixel-ratio:0) {    
        li img{
            max-width: 100%;
        }    
    }
    

    turns out I needed to add max-width add gave in to conditional browser hacking for firefox and chrome

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list like this: ['Ww','Aa','Bb','Cc','ww','AA','BB','CC'] And continuing in such a pattern, with
I have a List of HashMap such as below ArrayList l = new ArrayList
I have putting such data into LinearView. as like below code: public void showResult()
I have the webform with dropdown list, label and textbox. Like below: <asp:DropDownList ID=ddlTest
So I have a list with lots of items like below: <ul id=usersList> <li><FORM><INPUT
I have a drop-down list of items like below, and I would like to
If I have a list in python such as: stuff = [1, 2, 3,
i have such function to solve some logic riddle iloczyny is list with such
I have a list of lines with attributes such as Brush, line thickness, etc.
I have a list of values as such: row = ['0x14', '0xb6', '0xa1', '0x0',

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.