+ 1
How make input number type (bold) for Calculator ? 🙏
14 Answers
+ 9
If you want bold text in input textbox then you can use 👇
<input type="text" style="font-weight:bold;">
+ 6
. display-box {
font-weight:900;
font-size:25px;
}
/* use this in css */
+ 5
Infinity 21 Please link your code so I can help you
+ 5
So what do you want to appear in bold ?
+ 5
Infinity 21 this place is for discussion of code related topics and problems so please don't ask such questions here
+ 2
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Simple Calculator using HTML, CSS and JavaScript</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<table class="calculator" >
<tr>
<td colspan="3"> <input class="display-box" type="text" id="result" disabled /> </td>
<!-- clearScreen() function clears all the values -->
<td> <input type="button" value="C" onclick="clearScreen()" id="btn" /> </td>
</tr>
<tr>
<!-- display() function displays the value of clicked button -->
<td> <input type="button" value="1" onclick="display('1')" /> </td>
<td> <input type="button" value="2" onclick="display('2')" /> </td>
<td> <input type="button" value="3" onclick="display('3')" /> </td>
<td> <input type="button" value="/" onclick="display('/')" /> </td>
</tr>
<tr>
<td> <input type="button" value="4" onclick="display('4')" /> </td>
<td> <input type="button" value="5" onclick="display('5')" /> </td>
<td> <input type="button" value="6" onclick="display('6')" /> </td>
<td> <inpu
+ 1
Thanks for help me..
+ 1
Cand make value cal "bold" ?
+ 1
This my code
+ 1
Sujal good code is working ..thanks 🙏🙏🙏
0
2+2=4 I want to value is 4 type bold 🙏
0
Sujal ok thanks🙏
0
Mohamed Amr (Matsuki) tahanks this working..👌