Skip to content

Commit cfcb78e

Browse files
committed
Responsive css for icons and text fields
1 parent c2414fd commit cfcb78e

File tree

1 file changed

+34
-10
lines changed

1 file changed

+34
-10
lines changed

search.html

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
.start, .end, .time
127127
{
128128
font-size: 25px;
129-
width: 60%;
129+
width: 65%;
130130
}
131131
.searchLabel{
132132
display: inline-block;
@@ -157,15 +157,35 @@
157157
width: 50%;
158158
}
159159

160+
.icon-group-container {
161+
position: relative;
162+
height: 60px;
163+
width: 100%;
164+
}
165+
160166
.icon-group {
161-
padding: ;
162-
padding-left: 70%;
167+
position: absolute;
168+
top: 10px;
169+
right: 10px;
163170
}
164171

165172
.container .row {
166173
display: none;
167174
}
168175

176+
@media (max-width: 1024px) {
177+
.start, .end, .time
178+
{
179+
width: 90%;
180+
}
181+
182+
.icon-group {
183+
position: absolute;
184+
top: 10px;
185+
left: 10px;
186+
}
187+
}
188+
169189
</style>
170190
<title>foodCompass</title>
171191
</head>
@@ -180,9 +200,11 @@
180200
<section class="left-panel">
181201
<img class="logo" src="images/FC_logo.png" width="120">
182202

183-
<div class="icon-group">
184-
<img src="images/icon-car.gif" width="44" height="44" id="findroute"/>
185-
<img src="images/icon-bike.gif" width="44" height="44" id="findRouteBike"/>
203+
<div class="icon-group-container">
204+
<div class="icon-group">
205+
<img src="images/icon-car.gif" width="44" height="44" id="findroute"/>
206+
<img src="images/icon-bike.gif" width="44" height="44" id="findRouteBike"/>
207+
</div>
186208
</div>
187209

188210
<span class="searchLabel">
@@ -194,10 +216,12 @@
194216
Destination:
195217
</span>
196218
<input type="text" name="end" class="end" />
197-
<div class="icon-group">
198-
<img class="switchandprint switch" src="images/icon-swap.gif" width="44" height="44" id="switchInputsButton"/>
199-
<img class="switchandprint"src="images/icon-printer.gif" width = "44" height = "44" id="print" />
200-
</div>
219+
<div class="icon-group-container">
220+
<div class="icon-group">
221+
<img class="switchandprint switch" src="images/icon-swap.gif" width="44" height="44" id="switchInputsButton"/>
222+
<img class="switchandprint"src="images/icon-printer.gif" width = "44" height = "44" id="print" />
223+
</div>
224+
</div>
201225

202226
<div class="container">
203227
<div class="row">

0 commit comments

Comments
 (0)