Showing posts with label Card. Show all posts
Showing posts with label Card. Show all posts

Sunday 6 March 2022

how to create calculator in html and css

 


 html Code:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="d.js"></script>
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div class="container">
<form class="form">
<div class="display">
<input type="text" placeholder="0" name="displayResult" id="dis" disabled/>
</div>
<div class="button">
<div class="row">
<input type="button" value="C" onclick="clearScreen()">
<input type="button" value="+/-" onclick="Screen('+')">
<input type="button" value="X" id="ns">
<input type="button" value="%" id="bill" onclick="Screen('%')">
</div>
<div class="row">
<input type="button" value="7" onclick="Screen('7')">
<input type="button" value="8" onclick="Screen('8')">
<input type="button" value="9" onclick="Screen('9')">
<input type="button" value="X" id="bill" onclick="Screen('*')">
</div>
<div class="row">
<input type="button" value="4" onclick="Screen('4')">
<input type="button" value="5" onclick="Screen('5')">
<input type="button" value="6" onclick="Screen('6')">
<input type="button" value="-" id="bill" onclick="Screen('-')">
</div>
<div class="row">
<input type="button" value="1" onclick="Screen('1')">
<input type="button" value="2" onclick="Screen('2')">
<input type="button" value="3" onclick="Screen('3')">
<input type="button" value="+" id="bill" onclick="Screen('+')">
</div>
<div class="row">
<input type="button" value="0" id="ze" onclick="Screen('0')">
<input type="button" value="." onclick="Screen('.')">
<input type="button" value="=" id="bill" onclick="calculate()">
</div>

</div>
</form>
</div>
</body>
</html>

 Css Code:


*{
margin: 0;
padding: 0;
}

body{
background-color: rgb(41, 36, 36);
padding: 0;
margin: 0;
}

.container{
width: 400px;
height: 454px;
background-color: rgb(231, 231, 231);
border-radius: 10px;
position: fixed;
left: 30em;
top: 5em
}
#dis{
width: 386px;
height: 100px;
text-align: right;
text-decoration: none;
border: none;
padding-right: 12px;
background-color: rgb(231, 231, 231);
color:gray;
font-size: xx-large;
font-weight: bolder;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
}
.row{
margin: 0;
padding-left: 0px;
}
input[type=button]{
width: 96.1px;
height: 64px;
white-space: 0;
border: none;
font-size: 25px;
background-color: rgb(231, 231, 231);
}
input[type=button]:hover{
background-color: rgb(192, 185, 185);
}
#bill{
background-color: rgb(248, 155, 6);
color: wheat;
}
#bill:hover{
background-color: rgb(160, 104, 14);
color: #fff;
}
#ze{
width: 197.5px;
}
 

 

 

JavScript:


function Screen(value){
document.getElementById('dis').value+=value;
}
function calculate(){
var p=document.getElementById('dis').value;
var q=eval(p);
document.getElementById("dis").value = q;
}
function clearScreen() {
document.getElementById("dis").value = "";
}

Friday 18 February 2022

Whit html and css card with Rgb

 


SOURCE CODE CLICK Here to Donwnload



Subscribe in Youtube

Follow on Facebook

Follow In Instagram:

CODE

body{
  background-color: #0e0e0e;
}
.card{
  width: 190px;
  height: 254px;
  background: #fbf8f8;
  border-radius: 20px;
  box-shadow: 15px 15px 3px #bebebe -15px -15px 30px #ffffff ;
  box-shadow:  4px 6px rgba(143, 25, 25, 0.863)
}
.card:hover{
  box-shadow:  4px 6px rgba(15, 25, 161, 0.863)

}
h1{
  color:#050505;
  font-size: 60px;
  position: relative;
  top: 80px;
  left: 12px;
  box-shadow: 4px 4px 6px rgba(223, 0, 0, 0.5);
  width: 160px;
  border-radius: 12px;
}
h1:hover{
  box-shadow: 4px 4px 6px rgba(0, 17, 255, 0.527);
}


<!DOCTYPE html>
<html>
  <head>
    <title>This is Title</title>
    <link rel="Stylesheet" href="b.css">
  </head>
  <body>
    <div class="card">
      <h1>Ellina</h1>
    </div>
  </body>
</html>

Thursday 17 February 2022

Rotating Rgb around the card

Click here to Get Source code


Follow me on Facebook

Follow me on instagram

This is Css code:

@import url('https://fonts.googleapis.com/css?famliy=popins:100,200,300,400,500,600,700,800,900');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'popins',sans-serif;
}
body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* background-color: #0e1538; */
  background-image: radial-gradient(circle at center center,
transparent,rgb(33,33,33)),repeating-linear-gradient(135deg, rgb(33,33,33) 0px,
 rgb(33,33,33) 2px,transparent 2px, transparent 10px,rgb(33,33,33) 10px,
 rgb(33,33,33) 11px,transparent 11px, transparent 21px),
repeating-linear-gradient(45deg, rgb(47,47,47) 0px,
 rgb(47,47,47) 4px,transparent 4px, transparent 8px),
linear-gradient(90deg, rgb(33,33,33),rgb(33,33,33));
}
.box{
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0, 0, 0,0.5);
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 4px 4px 6px rgba(131, 28, 28, 0.5);
}
.box::before{
  content:"";
  position: absolute;
  width: 150px;
  height: 120%;
  background: linear-gradient(#ff3402,#fffefe);
  animation: animate 3s linear infinite;
}
.box::after{
  content:'';
  position: absolute;
  inset: 4px;
  /* background-color: #0e1538; */
  background-image: radial-gradient(circle at center center,
transparent,rgb(33,33,33)),repeating-linear-gradient(135deg, rgb(33,33,33) 0px,
rgb(33,33,33) 2px,transparent 2px, transparent 10px,rgb(33,33,33) 10px,
rgb(33,33,33) 11px,transparent 11px, transparent 21px),
repeating-linear-gradient(45deg, rgb(47,47,47) 0px,
rgb(47,47,47) 4px,transparent 4px, transparent 8px),
linear-gradient(90deg, rgb(33,33,33),rgb(33,33,33));
}
@keyframes animate{
  0%{
    transform: rotate(0deg);
  }
  100%{
      transform: rotate(360deg);
  }
}
.box h2{
  color: #fff;
  font-size: 5em;
  z-index: 10;
  text-shadow:12px 6px 10px rgba(131, 28, 28, 0.5); ;
}
                                                                                     
this is HTML code
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="okkay.css">
  <title>Document</title>
</head>
<body>
   <div class="box">
    <h2>Ellina</h2>
   </div>

</body>
</html>
 cerated by Ellina Khan

How to install and setup java in Windows

 Step 1:          first, you want to ensure that the JDK is installed in your system                        Then press Windows +  R  key  as...