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
0
votes
3 answers

Why are these responsive images not filling the wrapper?

I have a responsive image (srcset) that should be displayed at a max-width of 30rem, and fill the viewport otherwise. For that purpose I have the following html:
user5918874
0
votes
0 answers

Two media queries contradictorily went true. which will win?

which media condition will win in the given code below? .img { background-image: url(small.jpg); } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .img { background-image: url(medium.jpg); } } @media…
Jake
  • 244
  • 2
  • 16
0
votes
1 answer

How to use tag in Drupal 8

I need to display two versions of the image on my Drupal 8 website - one for "wide" viewport, another for "narow". I can do it by CSS classes and media queries, but the user will have to load both versions of the image. I would like to avoid it. I…
Radek Svítil
  • 378
  • 3
  • 20
0
votes
1 answer

confusion with source element inside picture element for responsive images

In the following code below, the media query condition is mentioned in two instances inside the source element. 1- media attribute 2- sizes attribute
Jake
  • 244
  • 2
  • 16
0
votes
2 answers

Why does Chrome constantly request new images when using `

jsbin img { width: 100%; } Try resizing that JS bin in Chrome ~61. The image keeps…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
0
votes
1 answer

object-fit solution for picture source srcset

I'm currently using picture srcset for responsive images and currently looking for a way to make it scale or cover the entire element or container, much like css background-size: cover or object-fit. I've read that object-fit only works on img tags…
clestcruz
  • 1,081
  • 3
  • 31
  • 75
0
votes
2 answers

How to utilize responsive images using CSS Grid Layout

Ive been working with the new CSS Grid Layout and one thing I can't seem to find much info on is how to make images responsive?? I've tried using media queries and setting the image width to 100% but the image still overflows outside of the grid.…
0
votes
1 answer

Srcset not working but shows alt tag message

I am building a new website, and want to use the srcset to let the browser deside what image is the best for the current viewport. What happens is that what ever i put in the srcset the browser will just show the alt tag text "test". If i through…
Axel Andersen
  • 330
  • 4
  • 14
0
votes
0 answers

srcset not working properly

I'm trying to get the srcset working so I can have multiple images loaded on different screensizes but it gives me the following error in the console: "Failed parsing 'srcset' attribute value since its 'w' descriptor is invalid." This is how I'm…
Larsmanson
  • 413
  • 1
  • 5
  • 18
0
votes
1 answer

Materialize Responsive Image not applying in Card

I have a card in materialize:
Steve Medley
  • 213
  • 1
  • 3
  • 16
0
votes
2 answers

how to do a Responsive images in a list with inline-block

so my problem is that i have 3 images with uneven width and still make them intact until it hit a certain width let's say 767px. and when it hit that width each of the images will take a full width of 767px until xs size of screen. sorry if this…
0
votes
1 answer

How to limit image download size in WordPress responsive images?

I'm using the following attachment image sizes in my theme: "thumbnail" (320) "medium" (640), "medium_large" (768) and "large" (1280). The default WordPress "srcset" and "sizes" attributes on the tags are causing the browser to download…
Ralph
  • 397
  • 1
  • 4
  • 16
0
votes
1 answer

CSS: auto calc height of element to match the background-image

I want a section of my site (banner) to be an image that fit all width and for the image to maintain the full width (not the px width, but in percentage) at all times. I don't care about the height being too low, I need the image to always show all…
Chazy Chaz
  • 1,781
  • 3
  • 29
  • 48
0
votes
1 answer

ckeditor 4.4 responsive image upload with old image plugin and custom filemanager to add srcset, sizes attribute

I have ckeditor 4.4, Old Image plugin (Not Image2), and I am using custom filamanager to upload files. How can I add responsive images to ckeditor. I mean, I have to add sizes and srcset attributes automatically to img tag. Image preview also should…
vikram eklare
  • 800
  • 7
  • 25
0
votes
1 answer

background image stops being responsive at a certain width

I have a 4496x3000 image I am using for a background image. It's responsive until it get down to about 1190px at which time it's not. I thought maybe creating a media query and using a smaller image would help but it did not. What is wrong with my…
comfortablyNumb
  • 195
  • 1
  • 17