const images = document.querySelectorAll('img');
images.forEach(function(img){
// get image width: 'w' and height: 'h'
// get list-product-item__img width: containerW, height: containerH
// .....
const imgAspect = w/h;
const containerAspect = containerW/containerH;
if (containerAspect>imgAspect) {
// set image width and height
img.style.width = containerW;
img.style.height = containerW / imgAspect;
} else {
// set image width and height
img.style.height = containerH;
img.style.width = containerH * imgAspect;
}
})
Сильный экономический бэкграунд.
Сильная математическая подготовка.
6) используют фреймворки лишь те, кто не научился верстать сам (я много времени провёл над изучением теории css, много практиковался, поэтому не считаю это действительно сильным аргументом).
я уверен в том, что он не украден.