Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Background Image ::placeholder::before

I want to put an icon to the placeholder of an input like:

.vue-input input {
    &::placeholder::before{
        content: '';
        display: inline-block;
        height: .75rem;
        width: 1.5rem;
        margin-right: .5rem;
        background-image: url(~/assets/flag-ch.png);
        background-size: 100% 100%;
        background-position: center;
    }

Is it possible to do that?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

no, you don’t. The element inpute don’t have content.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading