Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" href="styles.css">
<script src="tempConversion.js"></script>
<title>Temperature Converter</title>
Expand All @@ -19,17 +20,17 @@

<div class="container">

9

<h1>Temperature Converter</h1>
<div class="input-container">
<select id="conversion-from-type" class="dropdown-box">
<select id="conversion-from-type" class="dropdown-box" style="color: gray; width: 90px;">
<option value="Fahrenheit">Fahrenheit</option>
<option value="Celsius">Celsius</option>
<option value="Kelvin">Kelvin</option>
<option value="Rankine">Rankine</option>
</select>
<span id="to">to</span>
<select id="conversion-to-type" class="dropdown-box">
<select id="conversion-to-type" class="dropdown-box" style="color: gray;width: 90px;">
<option value="Fahrenheit">Fahrenheit</option>
<option value="Celsius" selected>Celsius</option>
<option value="Kelvin">Kelvin</option>
Expand Down
11 changes: 10 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body {
background-position: center;
/* Center both horizontally and vertically */
background-attachment: fixed;
font-family: Arial, sans-serif;
font-family:'Roboto', Arial, sans-serif;
background-color: #a8aaec;
text-align: center;
position: relative;
Expand All @@ -29,6 +29,7 @@ body {
transition: background-color 0.3s, transform 0.3s;
margin-top: 50px;
color: black;
width: fit-content;
}

.container:hover {
Expand All @@ -52,6 +53,9 @@ h1 {
margin-right: 20px;
margin-bottom: 20px;
}
select{

}

label {
font-weight: bold;
Expand Down Expand Up @@ -92,12 +96,17 @@ button:hover {
}

@media (max-width: 768px) {
body {
display: relative;
overflow: hidden;
}
h1 {
font-size: 24px;
}

.container {
width: 100%;

/* Full width on smaller screens */
}

Expand Down