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

With Jekyll 3, can I transform a post's Markdown before actual Markdown parsing?

I would like to use the Jekyll Responsive Image plugin to generate appropriate responsive images with srcset/sizes attributes for my posts' images. But I would also like to be able to edit my posts in a software providing a live preview like…
3
votes
3 answers

Maximum values allowed inbetween

I have a web page that is using a SVG coordinates on the asp.net framework. By trial an error, if i take out most of the tags i recieve no error. But if all the tags are in i get the following error Compiler Error Message: CS8095: Length of String…
3
votes
1 answer

Responsive img/srcset/sizes: Different jpg quality depending on device pixel density?

I am looking for a responsive image strategy that allows to serve different jpg quality based on the device pixel density. On a small screen with high resolution, I would serve a low-quality but high-resolution jpg. On a big screen with low pixel…
donquixote
  • 4,877
  • 3
  • 31
  • 54
3
votes
3 answers

What does calc(.333 * (100vw - 12em)) mean?

Can someone please explain to me what calc(.333 * (100vw - 12em)) means in the following line of HTML? And in particular the .333 value; where does that come from? sizes="(min-width: 36em) calc(.333 * (100vw - 12em)), 100vw" Taken from…
PussInBoots
  • 11,028
  • 9
  • 52
  • 84
3
votes
1 answer

Using srcset with random img from dir (php)

I'm looking for a way to use the responsive image attribute 'srcset' alongside php. I'm currently using the following code in order to pick a random image from a directory on the server:
Dannie Vinther
  • 183
  • 1
  • 5
3
votes
1 answer

Why is srcset downloading two images?

I am working on a major update of my grunt plugin for automated srcset and sizes creation and am confused by Chrome's behavior lately (I am using Chrome Version 46.0.2490.80 m on desktop). I checked Yoav Weiss' demo and noticed that Chrome is…
2
votes
2 answers

Does the src attribute in img tag still serve a purpose in modern browser that srcset can't?

For example, the following image element with no src tag provides the last image link as the default image when all media conditions fails and load perfectly well in modern browsers. The alt text content will display correctly in case the browser…
Superhuman
  • 61
  • 7
2
votes
0 answers

can I use the img sizes attribute to define the intended height of image rather than the width?

My image should always be rendered with a specific height of 500px
loominade
  • 1,028
  • 1
  • 11
  • 21
2
votes
1 answer

Responsive image spots with hover effects

I have quite a challenge here! Designer sent this ligth tree that have some light spots that on mouse hover should display a menu link to a page in the website. Not only that, on hover, an overlay shuld be activated changing the tint of the whole…
razor7
  • 2,165
  • 2
  • 19
  • 32
2
votes
2 answers

How do I place this text below, on mobile view (blogger website)?

so I am brand new to web development (and to anything that requires code) and I've encountered this issue when working on my blogger website. I imported the theme template and I'm currently trying to learn to work with it. this is how it looks on…
2
votes
1 answer

Sidebar Affects my page responsiveness and Something causes an overflow

HTML Code I made some changes to CSS code so that my sidebar can be fixed to the left, however even if I add margin-left to main content, it still extends beyond the view width I want the page to be responsive with sidebar fixed to left and doesn't…
2
votes
1 answer

Preload responsive images in a tag

I need to preload responsive images that are set in a tag:
Jack
  • 21
  • 4
2
votes
2 answers

HTML picture element downloading wrong image on mobile

I'm running a page through Google's Page Speed Analyzer and for mobile, it's telling me I should download the proper size images. I know the viewport size, but I don't know the width of the slot because we are using a responsive layout. I've looked…
Fongers
  • 155
  • 1
  • 1
  • 9
2
votes
0 answers

Best practices for responsive images in responsive context?

Agreeing on terms By responsive images I mean techniques for picking a source image with optimal file size for a given screen (viewport size and DPI). By responsive context I mean RWD: page components changing their layout based on viewport…
Andrey Mikhaylov - lolmaus
  • 23,107
  • 6
  • 84
  • 133
2
votes
1 answer

Automating Responsive images

I've an inefficient workflow by which I generate responsive images. What I'll do is (1) Install a dummy Wordpress, (2) When I want to include an image in my website, upload the original image to the dummy site Media Library (usually a 6200x4100 or…
cokicah505
  • 33
  • 1
  • 4