Skip to main content

All Questions

Tagged with
1 vote
1 answer
30 views

Why does a div with display: block (default) not expand to vertically fit an image without overflow but changing it to display: inline-block does? [duplicate]

I have a div with a background color via background-image:linear-gradient, and with the div's default display as block it doesn't expand vertically to fit the image, the image overflows over the ...
Isaac Sizemore's user avatar
-1 votes
2 answers
26 views

How to keep the Image in square shape in any screen dimensions

I am stuck in image dimension change on-screen responsiveness. I have 4 products with images in one row. I wanted Images in square shape so I gave them the fixed height and auto width. they were ...
M.Haris's user avatar
  • 599
-1 votes
0 answers
25 views

How to use <img src ""> in django [duplicate]

I am making a website using django and flowbite tailwind component library i want to add a carousel to my website ` ` in normal websites we use something like <img src="./img.jpg> This is ...
Ayush Singh's user avatar
-2 votes
1 answer
27 views

Failed to load image from a separate folder, how do I fix it?

I have a folder called "src". Within this folder, I have 2 other folders called "assets" and "code". I placed the images into the "assets" folder and then ...
Karol's user avatar
  • 1
-1 votes
0 answers
22 views

HTML coun'd locate my image when I put the folder into my django app [duplicate]

Before I put the html file inside the template folder follow along with my dijango project, it work perfectly. However, when I build a template folder, and put my CSS and HTML file in, the images are ...
Tony leung 's user avatar
-4 votes
0 answers
26 views

How can I set the hitbox of an image to match exactly the image in javascript? [closed]

I'm new to javascript and I want to do something when the image is pressed but i need it to be exactly the hitbox of the image, not around it. Is there a way to do it? I tried setting the margin/...
dwae's user avatar
  • 1
0 votes
1 answer
33 views

Conditional image source for a react project

I am practicing React JS lately, I am fetching cast data from TMDB for the project and using the profile_path data for image source. What my problem is now since some of the cast has null as their ...
Zülal's user avatar
  • 1
0 votes
0 answers
36 views

object fit: fill is not stretching the image and I want to stretch it [duplicate]

My question is not similar to this question because in this question op wants to fill the image, clipping it if necessary, however for me, I want to stretch the image, not clipping it but matching the ...
Sidharth Bajpai's user avatar
-10 votes
1 answer
135 views

How to create a layout for a quote with image and caption? [closed]

I want to have this layout: My try: .container{ padding: 10 px; gap: 10 px; flex-direction: row; } figcaption{ font-size: smaller; text-align: end; } <blockquote>Lorem ipsum ...
Ooker's user avatar
  • 2,601
-1 votes
1 answer
33 views

Image not displaying inside of div on HTML site

I am new to HTML and CSS, and I am programming an online portfolio for myself. When attempting to add a background image with the usage of a div and external CSS, I am unable to get the image to load ...
KoolPlays's user avatar
0 votes
0 answers
25 views

How to include img tag in html2canvas.js code? [duplicate]

I'm making paper documents into html web documents. There is a webpage as shown in the picture below, and if you type and sign and click Save, it will be saved as a *.png image file. However, if there ...
아이작's user avatar
1 vote
0 answers
24 views

Python sending email with embedded html images taking super long

newbie to python. what I want is to go into a folder, grab the images and embed them in my email. But when I run the program wouldnt complete after 5 minutes even though i had limited to only 1 image ...
chris nguyen's user avatar
1 vote
0 answers
20 views

Colly not detecting more than one sub-element from an element

I'm scraping images from a website using Colly, I've managed to get the relevant HTML Code that contains the URLs of the images that I need, however, when I try to append them to an array using Colly, ...
Himanshu Sardana's user avatar
-1 votes
0 answers
21 views

Can't load images on GoDaddy with path

Trying to load up some images on GoDaddy, added an images folder in public_html. Doesn't seem to work, worked locally with my local path. Wondering if maybe I just don't know the correct path? Don't ...
Matt Frankel's user avatar
0 votes
0 answers
41 views

Why is Safari 17.5 requesting multiple image requests with img attributes srcset and sizes? Does not happen on Chrome or Firefox

Hello I have a simple html basic document that just requests an image based on the screen size: <html> <head> </head> <body> <img sizes="10vw" ...
Bobby's user avatar
  • 303

15 30 50 per page
1
2 3 4 5
1172