Skip to content

Tag: html

Increase height of Container

I am trying to increase the height of the main body area on my hosted website i.e. the gradient to fill the space below the button as well. Link – https://surijatin.github.io/covid-second-dose/ Github Repo – https://github.com/surijatin/covid-second-dose I have tried adding the height: 100vh to th…

Add text between two textfield in material ui

I tried to add a text between the two textfield but somehow the text is not properly aligned with the two textfield Reference: https://codesandbox.io/s/m43tj?file=/demo.js:0-719 Answer In this root class, which is your form’s container, add the following style: Hope this helped =)

Randomize color pairs onclick (CSS, JavaScript)

There is a button on my website that should change the page’s background color and the headline text color onclick (simultaneously). What makes it more complex is that the possible color pairs (BG + headline) should be pre-determined, but the pairs themself should be randomized, so each time you click t…

How to restrict specific characters in a text box?

I’m trying to restrict single and double quotations within the text box of a form ( ” or ‘). I’ve researched and seen JS to only allow alphanumeric and so on, but nothing to restrict a specific character exactly. I’m fine with it not allowing it to be typed or to use an alert pop…