M
M
Maks_Min2022-01-03 21:24:43
css
Maks_Min, 2022-01-03 21:24:43

How to make a red star for input?

There is this form:

<form action="#">
                        <input type="text" name="name" placeholder="Имя">

                        <input type="text" name="num" placeholder="Номер телефона" required>

                        <input type="email" name="email" placeholder="E-mail" required>

                        <input type="text" name="goods" placeholder="Интересующий товар/услуга">

                        <textarea name="message" id="" cols="30" rows="9">Сообщение</textarea>
                        <span>
                            <input type="checkbox" name="check">Отправляя заявку Вы соглашаетесь с
                            политикой конфиденциальности
                        </span>
                        <button>ОТПРАВИТЬ<i class="fas fa-long-arrow-alt-right"></i></button>
                    </form>

How to make the asterisk in the placeholder red, please tell me.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav, 2022-01-03
@SlavaMaxwell

Many variations:
1. Wrap the input in a label and style an asterisk through after for the label
2. Different masks, there are default ones, but you need to look for such plugins, not all masks have stars
3. Through the span after the input and position it so that it stood right in the field

A
Alexander Varlakov, 2022-01-04
@AlexandrVV86

A
ambisinister One, 2022-01-04
@ambisinistrone

61d3d2ed47474499508005.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question