I'm struggling with my aspx master page, where the navigation bar is wrapping around even though I have set the width to 100%. It has worked fine in other projects, so I'm not sure what's causing this issue.
Snippet:
/*General Styling*/
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
#wrapper {
min-height: 100%;
position: relative;
}
.clear:before,
.clear:after {
content: " ";
display: table;
}
/*Header Styling*/
/*Banner Styling*/
#banner {
text-align: center;
border-bottom: 1px solid purple;
}
#banner h1 {
color: blue;
}
#banner h5 {
color: red;
}
/*Nav Styling*/
#nav {
height: 100px;
border-bottom: 1px solid black;
}
.nav-item {
margin: 0;
padding: 0;
display: block;
list-style-type: none;
height: 100%;
}
.nav-child {
overflow: hidden;
font-size: 15px;
border-right: 1px solid green;
float: left;
height: 100%;
text-align: center;
width: 16%;
}
.nav-child:first-child {
width: 20%;
}
/*Content Styling*/
#content {
padding-bottom: 35px;
}
/*Footer Styling*/
#footer {
width: 100%;
border-top: 1px solid orange;
height: 35px;
position: absolute;
bottom: 0;
left: 0;
}
<!-- Start Wrapper -->
<div id="wrapper">
<!-- Start Header -->
<div id="header">
<div id="banner">
<h1>BETTER</h1>
<h5>Battling Elemental Titans Through Exercise Training</h5>
</div>
<!-- Start Navigation Bar -->
<div id="nav" class="clear">
<ul class="nav-item">
<li class="nav-child">
<asp:label ID="exercisePointLabel" runat="server">EP: 500</asp:label>
<br />
<a href="#" runat="server">Add Exercise Points</a>
</li>
<li class="nav-child">
<a href="home.aspx" runat="server">Home</a>
</li>
<li class="nav-child">
<a href="battle.aspx" runat="server">Battle</a>
</li>
<li class="nav-child">
<a href="hallOfLegends.aspx" runat="server">Hall of Legends</a>
</li>
<li class="nav-child">
<a href="settings.aspx" runat="server">Settings</a>
</li>
<li class="nav-child">
<a href="~/account/login.aspx" runat="server">Logout</a>
</li>
</ul>
</div>
<!-- End Navigation Bar -->
</div>
<!-- End Header -->
<!-- Start Content -->
<div id="content">
<!-- Start Titan Sidebar -->
<div id="titans">
<div class="titan-block">titan block</div>
<div class="titan-block"><a href="#" runat="server">+<br /><span class="createTitan">(create new titan)</span></a>
</div>
<div class="titan-block"><a href="#" runat="server">+<br /><span class="createTitan">(create new titan)</span></a>
</div>
<div class="titan-block"><a href="#" runat="server">+<br /><span class="createTitan">(create new titan)</span></a>
</div>
</div>
<!-- End Titan Sidebar -->
<!-- Start Content Placeholder -->
<form id="form1" runat="server">
<div id="body">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
<!-- End Content Placeholder -->
</div>
<!-- End Content -->
<!-- Start Footer -->
<div id="footer">
<div class="footer-text">© 2016</div>
</div>
<!-- End Footer -->
</div>
<!-- End Wrapper -->
If anyone could assist me with this issue, I would greatly appreciate it. This problem is really frustrating for me. I am trying to create a website with a banner consisting of a heading and subheading, followed by a navbar with specific styling requirements. The content layout includes sections on titans and placeholders, all aligned correctly according to my design.