summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnmol Agrawal <anmol1771@gmail.com>2014-09-30 00:39:50 +0530
committerAlon Levy <alon@pobox.com>2014-09-30 20:25:32 +0300
commit9f9215499c2e2e248b604515d6741d17e78d9062 (patch)
tree3e3455e4b55aed5e1049e234f1a9ed34f5e2593b
parentf5b744c81b6f39daf58e93a0d779391688a1bb07 (diff)
The text box is fixed except that it doesn’t return to it’s original
size.
-rw-r--r--index.html2
-rw-r--r--style.css8
2 files changed, 4 insertions, 6 deletions
diff --git a/index.html b/index.html
index aa5ae7d2..01a20d36 100644
--- a/index.html
+++ b/index.html
@@ -49,7 +49,7 @@
<div id="suggestion" >
- <form> <input id="textanalyser" placeholder="Type here to create a network:" /></form>
+ <form> <input id="textanalyser" size="70" placeholder="Type here to create a network:" onkeyup="expand(this);"/></form>
</div>
<div class="typeselection">
diff --git a/style.css b/style.css
index 3f5ce33a..09f3f4ef 100644
--- a/style.css
+++ b/style.css
@@ -72,8 +72,8 @@ a:active {
#textanalyser{
position: fixed;
- width:900px;
height:30px;
+ max-width: 70%;
}
input:focus {
@@ -83,14 +83,12 @@ input:focus {
#suggestion{
display:block;
position:fixed;
- top:30px;
- left:20px;
+ top:30px;
+ left:20px;
list-style-type: none;
width:900px;
}
-
-
.node {
stroke: #fff;
stroke-width: 1px;