How to Show scrollbar while mouse hover the container without affecting alignment

I want to display scrollbar while the mouse hover the container, if the contents inside the container overflows the container. The below code works good in chrome but doesn’t work in firefox, because it doesn’t suppport overlay property. <style type="text/css"> .container { overflow:hidden; } .container:hover { overflow:overlay; } </style> <div class="container"> contents </div> I tried… Read More How to Show scrollbar while mouse hover the container without affecting alignment

Creating HTML/Javascript Modal with dynamic text

I am learning Javascript and my project contains 3 buttons that open a modal. Everything works fine, however I want to reuse the modal and replace the modal text depending on which button is clicked. My HTML is below: <body> <button class="show-modal" id="btn-1">Show modal 1</button> <button class="show-modal" id="btn-2">Show modal 2</button> <button class="show-modal" id="btn-3">Show modal 3</button>… Read More Creating HTML/Javascript Modal with dynamic text

how to write good anchors in react.js

I had code in react js but the are problem to write anchor with href . form example this below code import React from "react"; function Browser() { return ( <div> <section className="flex bg-gray-100 py-16 px-4" id="browse-the-room"> <div className="container mx-auto"> <div className="flex flex-start mb-4"> <h3 className="text-2xl capitalize font-semibold"> browse the room <br className="" /> that… Read More how to write good anchors in react.js

Vertically center a text in a paragraph tag inside an 'absolute' positioned div

There is main div Inside it a ‘relative’ positioned div then there are two tags img and then an overlay div, which has a p tag I cannot vertically the text inside the p tag TailWind PlayGround of above work >Solution : Use flex property. Just add three classes to your absolute positioned div flex… Read More Vertically center a text in a paragraph tag inside an 'absolute' positioned div

PineScript v1 alert

I’ve tried to add alertcondition if area color is green/lime = buy and if red/maroon = sell, but since indicator is in v1 I can’t find any doc nor know how to program very well in v1. Could someone help me translate to v5 or put the alertconditions? thanks study(shorttitle = "SQZMOM_LB", title="Squeeze Momentum Indicator",… Read More PineScript v1 alert