Skip to content

Commit c3deb57

Browse files
committed
Fixed Navigation Bar scaling of quiz-app
1 parent dbd6a3c commit c3deb57

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

quiz-app/src/App.vue

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
<template>
22
<div>
33
<nav>
4-
<router-link class="navlink" to="/">Home</router-link>
5-
<label for="locale">locale</label>
6-
<select v-model="locale">
7-
<option>en</option>
8-
<option>es</option>
9-
</select>
10-
11-
<span class="title">{{ questions[locale][0].title }}</span>
4+
<ul>
5+
<li>
6+
<router-link class="navlink" to="/">Home</router-link>
7+
</li>
8+
<li>
9+
<label for="locale">locale</label>
10+
</li>
11+
<li>
12+
<select v-model="locale">
13+
<option>en</option>
14+
<option>es</option>
15+
</select>
16+
</li>
17+
<li class="title">{{ questions[locale][0].title }}</li>
18+
</ul>
1219
</nav>
1320
<div id="app">
1421

@@ -74,6 +81,17 @@ nav a {
7481
text-align: right;
7582
}
7683
84+
ul{
85+
list-style-type: none;
86+
margin: 0;
87+
padding: 0;
88+
overflow: hidden;
89+
}
90+
91+
li {
92+
float: left;
93+
}
94+
7795
.title {
7896
color:white;
7997
font-weight: bold;

0 commit comments

Comments
 (0)