---
title: "Comment by Gerardo Cardenas on \"CSS Tips you won't see in most tutorials\" | Hashnode"
description: "I don´t understand CSS modals. The example is not intuitive and I don´t see the code to make it. Info is missing. Another point: It will be useful to start writ"
url: "https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/5fd837402444ad0ea85122ac"
---

[Discussion](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16)

Comment [CSS Tips you won't see in most tutorials](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16)

[Gerardo Cardenas](https://hashnode.com/@AmateurProgrammer)

[Dec 15, 2020](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/5fd837402444ad0ea85122ac)

I don´t understand CSS modals. The example is not intuitive and I don´t see the code to make it. Info is missing. Another point: It will be useful to start writing a list of each subtopic (the ones with \*) - best regards.

[Some Guy](https://hashnode.com/@SomeGuy)

[Dec 15, 2020](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/5fd837402444ad0ea85122ac#reply-5fd84ae62444ad0ea851237f)

Hey, I went and found :target explained on Mozilla and it makes a lot more sense now:

> You can use the :target pseudo-class to create a lightbox without using any JavaScript. This technique relies on the ability of anchor links to point to elements that are initially hidden on the page. Once targeted, the CSS changes their display so that they are shown.

Check out the Pure CSS Lighbox here: [developer.mozilla.org/en-US/docs/Web/CSS/:target](https://developer.mozilla.org/en-US/docs/Web/CSS/:target#Pure-CSS_lightbox)

[Marko Denic](https://hashnode.com/@denic)

[Dec 15, 2020](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/5fd837402444ad0ea85122ac#reply-5fd86c8d7418a90e83c89fd7)

Hey [Gerardo](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/@AmateurProgrammer)!

It's a popup, I don't know how to make it more intuitive then it Is now.

You can see the code (both HTML and LESS) if you click on the (HTML and LESS) buttons here: ![buttons.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1608018966006/YkFvkjP-O.png)

[Some Guy](https://hashnode.com/@SomeGuy)

[Dec 15, 2020](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/5fd837402444ad0ea85122ac#reply-5fd920db7e242e208adca9c6)

It's pretty awesome, [Marko Denic](https://hashnode.com/@denic)! I'm loving all your tips posts! Wish I saw something like your 10 Javascript Methods post a long time ago.

[Marko Denic](https://hashnode.com/@denic)

[Dec 15, 2020](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/5fd837402444ad0ea85122ac#reply-5fd9320bea368e206535d6b6)

Thanks a lot! ❤

[Gerardo Cardenas](https://hashnode.com/@AmateurProgrammer)

[Dec 16, 2020](https://hashnode.com/posts/css-tips-you-wont-see-in-most-tutorials/5f67937535d6463d2b5f8f16/comment/5fd837402444ad0ea85122ac#reply-5fd96dea7e242e208adcabed)

Thanks for your explanations. Now I understand it. [Marko Denic](https://hashnode.com/@denic)
