forked from MohmedIkram/Hacktoberfest2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.html
63 lines (55 loc) · 1.76 KB
/
card.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" type="text/css" href = "style.css">
</head>
<body>
<section>
<header>
<a href="#" class ="logo">Metier</a>
<div class ="toggle"></div>
</header>
<div class="row"style="margin-left:80px;width:90%">
<div class="column">
<div class="card">
<h1 contenteditable style="background-color: aliceblue;" id="myP">QUESTION 1</h1>
</div>
</div>
<div class="column">
<div class="card">
<h1 contenteditable style="background-color: aliceblue;" id="myP">QUESTION 1</h1>
<textarea> </textarea>
</div>
</div>
<div class="column">
<div class="card">
<h1 contenteditable style="background-color: aliceblue;" id="myP">QUESTION 1</h1>
</div>
</div>
</div>
<div class="row" style="padding-left:220px;width:80%;overflow: hidden;">
<div class="column">
<div class="card">
<h1 contenteditable style="background-color: aliceblue;" id="myP">QUESTION 1</h1>
<textarea> Enter your question</textarea>
</div>
</div>
<div class="column" >
<div class="card">
<h1 contenteditable style="background-color: aliceblue;" id="myP">QUESTION 1</h1>
</div>
</div>
</div>
</section>
<button onclick="myFunction()">Try it</button>
<script type="text/javascript">
function myFunction() {
document.getElementById("myP").contentEditable = true;
document.getElementById("demo").innerHTML = "The p element above is now editable. Try to change its text.";
}
</script>
</body>
</html>