Skip to content
Advertisement

Tag: css

how to expand an image on click with JS?

I created a gallery using the following codepen and now I’m trying to add the function click to expand an image, using this JS method. Sadly I cannot get it to work. Any advice would be very helpful, either regarding this expand option or an alternative. Mind you I’m completely new to JS. Thanks in advance! Answer So after asking

Change the color of elements in Select from MUI

It seems that there were quite a lot of questions and answers on this topic, but I could not find anything suitable for myself. I ask the community for help. I’m using the Select component from @mui/material to display the number of records per page. And I’d like to change the color of the window’s border when it’s clicked, and

Font Awesome icon not changing color based on React state

Font awesome icon is not changing color based on react state, I have an app which shows random quotes and display random color in background, new quote button and twitter icon. On first reload twitter icon color is changing as intended, however, when new quote button is clicked it stays the same. Here is my code To diagnose the problem

Unable to load CSS file within nodeJS app

I have an app that I followed from a tutorial for the backend in nodeJS and Express. My connection to MongoDB via Mongoose is working. However, I’ve been trying to add a front-end- at the moment- just a simple html/ejs/css form. My endpoints are loading in localhost but only the html/ejs is rendering. My css file shows as plain code

Toggle Class With Font Awesome Not Working

I have multiple buttons, when a like button is clicked I would like the font awesome icon to switch as well, however, the way I have it set up the font awesome icon just disappears, but I can see the class change. Not sure where to go from here. Answer If you want to change icon/style just add other class

Html welcoming screen animation switching problem

The Code: Hello friends,I have 2 questions. Firstly,How can I add a blink animation at the same angle after your smiley face turns a certain angle? In my code there is no blinking smiley feature. Finally, how do I make the page border not visible on the welcoming page? so mean I don’t want the border to appear on the

Advertisement