Hi Everyone,
I'm stuck with making the share icon clickable again and again, it just shows the social media pop-up once and stops, not sure what is wrong, can anyone help here? Thanks,
Hi Everyone,
I'm stuck with making the share icon clickable again and again, it just shows the social media pop-up once and stops, not sure what is wrong, can anyone help here? Thanks,
Hi, you just over complicate this. To display/hide this share overlay you just need to add and remove class active to .clicked-profile div. The best solution to add and remove class is toggle. Your code should look like this :
document.querySelector('.share-img').addEventListener('click', () => { document.querySelector('.clicked-profile').classList.toggle('active'); })
Hope this solution will be helpful.
I couldn't align Ethereum and Clock logos horizontally. Could you please give me an advice on how to do it? Thanks.
Hi, I checked your code and you are using pseudo-elements ::before to display icons so if you want to align them you must set position: relative to parent element and position: absolute to ::before element. So for example it should look like this:
.card__price { position: relative; margin-left: 20px; }
.card__price::before { position: absolute; left: -20px; top: 1px; }
.card__date { position: relative; }
.card__date::before { left: -25px; top: 2px; }
Hope it helps you.
You forget to remove bullets from li elements on footer (social links and site navigation).
Besides of that you made a great solution.