Questions tagged [responsive-images]

Responsive-images is the part of Responsive Web Design (RWD) dealing specifically with images on the web to provide optimal experiences across a wide range of devices based on screen size, platform, and orientation.

518 questions
2
votes
1 answer

Why are two srcset images loaded?

In the context of developing responsive web templates, I use the srcset attribute to load different images depending on the current viewport size. This works fine in general. But in production mode the images are loaded from a DAM (Digital Asset…
GrübelDübel
  • 165
  • 10
2
votes
3 answers

Internet Explorer responsive images losing aspect ratio

Internet Explorer will sometimes lose the aspect ratio of responsive images using max-width: 100% whether or not height: auto is set. The 'sometimes' depends on the image file used. So this is not a coding issue, but a glitch in IE that occurs with…
Sean Laibinis
  • 31
  • 1
  • 4
2
votes
1 answer

Responsive images: Srcset & sizes

I'm implementing responsive images in a current project, and referenced this post on CSS-Tricks in which he uses the following example: yah I used this format in my own project,…
nickpish
  • 839
  • 4
  • 24
  • 43
2
votes
1 answer

How to test srcset algorithm

I'm asking this because in my Mac Retina and Google Chrome Developer Tools, I can't see the other images in my srcset.
Italo Borges
  • 2,355
  • 5
  • 34
  • 45
2
votes
0 answers

Ckeditor responsive images and responsive tables

I'm using ckeditor in my django project. It's a responsive page hence everything changes when the width of the page changes except for tables and images, they remain the same size. I'm using 'safe' filter to render everything, it works fine, but the…
Sushant
  • 3,499
  • 3
  • 17
  • 34
2
votes
1 answer

Determine image quality for mobile devices

What is the best practice for determining which image assets to serve to mobile vs desktop on a responsive site? The desired outcome is to serve large, high-res images to desktop users and to serve smaller images to mobile users.
eugenekgn
  • 1,652
  • 2
  • 17
  • 38
2
votes
1 answer

Does "sizes" attribute work in Chrome for element?

The element has been working in Chrome for over a year, but I can't get the sizes attribute of to work. The following displays the correct image for the breakpoints in the media queries, but the images are displayed at their…
tronman
  • 9,862
  • 10
  • 46
  • 61
2
votes
1 answer

How to display a specific size image using SRCSET no matter what the device's pixel ratio is?

I am using srcset to display an animated GIF for users on large devices, but need to display a static JPG to users on small and medium devices. The following code works great when I resize my browser window on a 1x screen. The issue I'm running into…
Cofey
  • 11,144
  • 16
  • 52
  • 74
2
votes
0 answers

Block Wordpress from resizing gifs automatically

A site I maintain only displays .gifs when they're animated, all non-animated images are .pngs or .jpgs 100% of the time. Is there a hook that I can use to block Wordpress from resizing .gifs when Wordpress automatically resizes images for…
Dedering
  • 413
  • 2
  • 10
2
votes
2 answers

Background no responsive on Bootstrap

I have a problem with Bootstrap in a landing page that I made... I have the following code
Konstantinos Natsios
  • 2,874
  • 9
  • 39
  • 74
2
votes
2 answers

HTML5 srcset, sizes & Art Direction

As far as I can tell, the srcset and sizes attributes focus more on applying a suitably scaled image for the device’s size and resolution. There appears to be no facility to use these attributes to select an alternative image based on the screen…
Manngo
  • 14,066
  • 10
  • 88
  • 110
1
vote
0 answers

Enlarged images did not displayed in browser, vite, react

I have a Vite-React app where I have normal size and enlarged images (for retina screen users). All the mentioned images are stored in the public/img/ directory. The problem arises when I use the Toggle device toolbar in my browser to check how the…
Paulina S
  • 11
  • 2
1
vote
0 answers

Responsive images on CSS grid; how to serve best image size

I have a CSS grid with a fluid layout of repeating columns minmax(33.8rem, 1fr). The grid container has a max-width: 140rem applied, so it will show a maximum of 4 columns. The grid container is centred using margin: 0 auto. Each grid cell holds a…
Peter Ryan
  • 214
  • 1
  • 9
1
vote
1 answer

How do i change the image to square after 960px breakpoint?

I am unable to determine what to change so that after 960px break point the image would show as square on the right side of the paragraph. According to the instructions I have been given: It says,The HTML really only requires you to edit the img…
Enhance
  • 11
  • 2
1
vote
1 answer

How to have text content "squeeze" image but fill rest of screen

I have the following HTML:

Some text

Some text

Some text

Some text

And the…
chipit24
  • 6,509
  • 7
  • 47
  • 67