Basically what title says trying to get this menu to take up the full width on mobile devices but my buttons are mahsing together on the right with a awkward white space to the right as well. I thought I could avoid this problem by using xs columns in bootstrap but I am clearly missing something really important here about bootstrap. I have tried using both container and container fluid classes, and using display in-lineblock on various properties as well.
Any advice on how to get this to look the same on both mobile and desktop?
Not sure if I understood your problem correctly and I am still a newbie, so there are probably better solutions to this. I would consider to edit the default navbar found in bootstrap.
But I tried to play around with your code and ended up with this:
HTML :
<head>
<title> Christian Malpass Portfolio
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
function scrollWin(x, y) {
window.scrollBy(x, y);
}
</script>
</head>
<body>
<div class = "navigate">
<div class = "container">
<div class = "row">
<div class = "col-xs-6 googlefont">
<p>Caffine Imp</p>
</div>
<div class="col-xs-6 center-block">
<ul>
<li><a class="button" id = "farLeft" onclick="scrollWin(0, 100) href="default.asp">About</a></li>
<li><a class = "button" onclick="scrollWin(0, 100)" href="news.asp">Portfolio</a></li>
<li><a class = "button" onclick="scrollWin(0, 100)"" href="contact.asp">Contact</a></li>
</ul>
</div>
</div> <!--row-->
</div> <!--container-->
</div> <!--navigate-->`indent preformatted text by 4 spaces`
</body>
li a {
display: block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
When the screen get to 486px âcontact jumps downâ below âaboutâ, because the text donât fit the screen anymore. I would try to hide the navigator menu and add a hamburger menu at this point.