L
L
Lol Likovic2020-08-21 18:23:01
HTML
Lol Likovic, 2020-08-21 18:23:01

The image is not inserted in the placeholder, how to insert it?

<svg class="bd-placeholder-img rounded-circle" width="300" height="300" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 140x140"><title>Placeholder</title><rect width="100%" height="100%" fill="#778"></rect><text x="50%" y="50%" fill="#777" dy=".3em">140x140</text></svg>

I can’t insert a picture, it seems like I’ve already tried everything: it’s not displayed and that’s it, at least kill yourself

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dima Polos, 2020-08-21
@dimovich85

How to insert an image into a placeholder?
Put a picture in the background and that's it. Placeholder for other things done.

S
Spartak (Web-StyleStudio), 2020-08-21
@Spartak-2205

Through placeholder in any way.
As an option: add an additional class for input / textarea, in this class you specify an image through the background, and you can also add a pseudo-class :active or :focus for this class, and cancel the display of the image in it, that is, there will be something like imitation of placeholder - active input->no picture, inactive input->there is a picture

F
ftp14, 2020-08-22
@ftp14

Through placeholderto make such a divine miracle will not work =). You can wrap in background. And if we are not looking for easy ways, then ... Create a separate block , put the picture there and (do it the way you like). Only then there will be problems with styles =)) display: flexinput

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question