Похожие чаты

Hi guys i making more than 3 or 4 modals,

with HTML CSS , when clicking on picture the modal will open(picture is link)
but here i have to define #id in href of my a tag,
but there is many picture that has modal! and here i have to define many href id in my css for every pictures
what is your opinion for fix this problem?

8 ответов

34 просмотра
Plato- Автор вопроса

Can tou give us an example? I'm afraid the explanation isn't clear enough

Plato- Автор вопроса
Pedro Aguiar
Can tou give us an example? I'm afraid the explana...

all of these images are link <a> <img></a> so when i clicking to them should modal open, and the <a> tag have id for modal like this code section <a href = "#popup"><img src = "images/amirreza.jpg" class = "card" alt="amirreza pic"/></a> <div id = "popup"> and the problem is " id and href here are unic for each picture " so i have to define more id and different id in CSS for any modal picture, but i dont want do this, is there any idea for fix this?

Plato- Автор вопроса
Plato
screenshot all of these images are link <a> <img></a> so wh...

i think there is no solution for this, i have to make more #id 🤦‍♂️

Plato
i think there is no solution for this, i have to m...

find how the modal/popup is launched and replicate the same with JS i.e. on click on any of your a tags, execute the popup open logic. but your solution still is fine since you opted to spend your time duplicating HTML (as it can be done using <template> and a little of JS)

Plato- Автор вопроса
Perlik Yubenji
find how the modal/popup is launched and replicate...

so the solution is JS... and what is <template> i searching for this and i can't find have you any article about this?

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта