skip to Main Content

Reactjs – Creating a background color changer

import { useState } from "react" function App() { const [color, setColor] = useState("olive") return ( <div className="w-full h-screen duration-200" style={{backgroundColor: color}} ></div> ) } export default App Above code is not giving output. I tried to change the background…

VIEW QUESTION

Html – Use Display Fixed

I can't add style display:fixed to my header div! When I use that, my div is hidden, and I can't, it sees! My HTML codes : <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />…

VIEW QUESTION

Css – Change text color on div hover

How can I change the text color inside a div on hover? The text color doesn't seem to change, but everything else does Here's a look at what am talking about <div className="hover:bg-blue-100 hover:border-blue-500 hover:text-blue-600"> <p>Change textcolor inside here....</p> </div>

VIEW QUESTION
Back To Top
Search