Skip to content

worked on making html better looking #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions HtmlGame/CarGame.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,36 @@
border:1px solid #f7a219;
background-color: #08070c;
}

.button{
background-color:#040303;
border: none;
color: white;

padding: 10px;
box-shadow: none;
margin-top: 10px;
border-radius: 4px;
transition: box-shadow 0.15s;
}
.button:active{
background-color: hsl(59, 100%, 50%);
border: none;
color: rgb(2, 0, 0);
font-weight: bold;
margin-top: 15px;
margin-left: 15px;
padding-bottom:10px;
border-radius: 4px;
box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.15);
}

.div{
color: white;
}
</style>
</head>
<body onload="startGame()">
<body style="background-color: #310505;" onload="startGame()">
<script>


Expand Down Expand Up @@ -131,8 +158,9 @@
}
</script>
<br>
<button onmousedown="accelerate(-0.10)" onmouseup="accelerate(0.200)">ACCELERATE</button>
<p>Use the <b>ACCELERATE</b> button to stay in the air</p>
<h1>This game is made by <b>Rajnandan Prasad</b></h1>
<div style="text-align: center;"><button class="button" onmousedown="accelerate(-0.10)" onmouseup="accelerate(0.200)">ACCELERATE</button></div>
<div class="div">
<p><span>Tips:</span> Use the <b>ACCELERATE</b> button to stay in the air</p></div>
<footer style="color: white;"><p>This game is made by <strong>Rajnandan Prasad</strong></p></footer>
</body>
</html>