Div does not follow the mouse

Issue In the following code, I hope my div will follow my mouse in red background but it does not, what’s the reason for that? CSS .dropdown1 { position: absolute; left: 150px; top: 10px; background: #2b4557; padding: 4px 8px; font-size:

Continue reading

html strings array convert to JSX

Issue `import React from ‘react’ export default function Quiz(props){ // generate random index without duplicates function generateRandomIndex(){ const randomNumArr=[] for (var a = [0, 1, 2, 3], i = a.length; i–; ) { var random = a.splice(Math.floor(Math.random() * (i +

Continue reading

How to vertical align links and image inside <ul> <li>

Issue I am trying to build a menu, this is the html <header className="header"> <div className="main-menu"> <ul> <li className="main-menu__app-menu"><Link href="#"><a>Link A</a></Link></li> <li className="main-menu__app-menu"><Link href="#"><a>Link B</a></Link></li> <li className="main-menu__app-menu"><Link href="#"><a>Link C</a></Link></li> <li className="main-menu__user-menu"><Link href="#"><a>Link D</a></Link></li> <li className="main-menu__user-menu"><Link href="#"><a>Link E</a></Link></li> <li className="main-menu__user-menu"> <img

Continue reading