Skip to content

Commit bfeea40

Browse files
committed
added css
1 parent 08d7990 commit bfeea40

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

user-input-with-forms/studio/index.html

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<script>
4+
<meta charset="utf-8">
5+
<title>Custom Search Form</title>
6+
<style>
7+
body {
8+
background-color: gray;
9+
color: blue;
10+
font-size: 200%;
11+
}
12+
form {
13+
max-width: 600px;
14+
margin: auto;
15+
padding: 20px;
16+
}
17+
input[type="text"], input[type="submit"] {
18+
font-size: 1em;
19+
}
20+
</style>
21+
<script>
622
window.addEventListener("load", function(){
723
document.getElementById("searchForm").addEventListener("submit", function(event){
824
event.preventDefault();
@@ -23,12 +39,12 @@
2339
this.submit();
2440
});
2541
});
26-
</script>
42+
</script>
2743
</head>
2844
<body>
2945

30-
<form id="searchForm">
31-
<input type="text" name="q" placeholder="Search...">
46+
<form id="searchForm">
47+
<input type="text" name="q" placeholder="Search..." style="font-size: 1em;">
3248
<div>
3349
<input type="radio" id="google" name="engine" value="google" checked>
3450
<label for="google">Google</label>
@@ -42,8 +58,8 @@
4258
<input type="radio" id="ask" name="engine" value="ask">
4359
<label for="ask">Ask</label>
4460
</div>
45-
<input type="submit" value="Go!">
46-
</form>
61+
<input type="submit" value="Go!" style="font-size: 1em;">
62+
</form>
4763

4864
</body>
4965
</html>

0 commit comments

Comments
 (0)