raw-power
KPCKevin Powell - Community
•Created by raw-power on 2/24/2025 in #front-end
Hiding an element when other elements set to display:none
https://codepen.io/peterchanning/pen/XJWKPNO
Please see the above codepen
This all works great, select the dropdown for fruits and it filters the divs to only show ones that contain the fruits and desserts that contain the fruit.
But when doing the same for desserts, it filters perfectly (no fruits showing, only desserts of that type), but the <h1> heading for Fruit still shows and looks odd.
Can we use a method to also hide the <h1> tag if there are no visible <div> elements? Is there a pure CSS solution or if not, any Javascript way?
Can we use a method to also hide the <h1> tag if there are no visible <div> elements? Is there a pure CSS solution or if not, any Javascript way?
6 replies
KPCKevin Powell - Community
•Created by raw-power on 1/21/2025 in #back-end
Forms and Site Security Help
Hi everyone! I have most of my site set up with just HTML and CSS, I want to add a form to receive some information such as Name, Phone Number and Email Address and have that emailed to me. I have a php setup for that, but I'm worried that having a form may create a vulnerability in my site and allow it to be hacked (it's happened before). How are you all preventing injection attacks and other exploits?
89 replies