I am struggling with implementing a NavBar from react bootstrap. There seems to be a <div class="container">
that is causing the width to be fixed. How can I adjust this width to be set as auto
?
https://i.sstatic.net/g1uSG.png
I have attempted the following:
.navbar > .container {
width:auto;
}
However, the margin persists. Another approach I tried was:
<Navbar style={{ width: "auto" }}>
<Navbar.Header>
...
Unfortunately, neither of these methods were successful. Below is the snippet of my complete code:
<Row>
<Navbar>
<Navbar.Header>
<Navbar.Brand className="lang-de">
<a href="/" />
</Navbar.Brand>
<Navbar.Toggle />
</Navbar.Header>
<Navbar.Collapse>
<Nav pullRight>
<NavItem eventKey={1} href="#">
Impressum
</NavItem>
</Nav>
</Navbar.Collapse>
</Navbar>
</Row>