Choose a style: Larger text ✓ Home Morning routine Night routine Contact us Home Morning routine Night routine Contact us Choose a style: Normal
Choose a style: Larger text ✓ Home Morning routine Night routine Contact us Home Morning routine Night routine Contact us Choose a style: Normal
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 4RA
Related questions
Question
When the text is larger, one of the options in navigation bar keeps dropping. How to make it stop without changing any of text sizes:
header.html
<nav>
<ul>
<li><ahref="index.html"class="active">Home</a></li>
<li><ahref="morningroutine.html">Morning routine</a></li>
<li><ahref="nightroutine.html">Night routine</a></li>
<li><ahref="form.html">Contact us</a></li>
</ul>
</nav>
header.css
nav ul {
list-style-type: none;
background-color: #b5dffd;
overflow: hidden;
}
nav li {
display: inline;
margin-right: 90px;
}
nav a {
font-weight: bold;
float: left;
color: black;
text-align: center;
padding: 2%2.3%;
text-decoration: none;
}
nav a:hover {
background-color: hsl(139, 85%, 13%);
color: white;
}
nav a.active {
background-color: hsl(139, 85%, 13%);
color: white;
}
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning