Answers for "button width css"

1

button size html

<button style="height:40px; width:40px;">Press Me</button>
Posted by: Guest on March-31-2021
0

change button size css

.test{
    height:200px;
    width:200px;
}
Posted by: Guest on April-20-2021
2

css size button

button {
  font-size: 20px; /* Put your wanted size for your button here*/
}
Posted by: Guest on November-21-2020
4

html button size

transform: scale(4); /* This will make the component 4 times bigger  */
Posted by: Guest on July-28-2020
0

how to set button width in javascript

var buttonShort = document.createElement("button");
buttonShort.innerHTML = "Generate Short Password";

var body = document.getElementsByTagName("body")[0];

buttonShort.style.width = '200px'; // setting the width to 200px
buttonShort.style.height = '200px'; // setting the height to 200px
buttonShort.style.background = 'teal'; // setting the background color to teal
buttonShort.style.color = 'white'; // setting the color to white
buttonShort.style.fontSize = '20px'; // setting the font size to 20px

body.appendChild(buttonShort);

buttonShort.addEventListener("click", function() {
  var newWindow = window.open();
  newWindow.document.write("The generated Password is: '" + short() + "'");
  newWindow.focus();
});
Posted by: Guest on December-29-2020

Browse Popular Code Answers by Language