I'm using react-bootstrap
for styling my website. I want to add Navbar
where all of the elements are mirrored to the right.
export default class XNavbar extends React.Component {
render() {
return (
<Navbar inverse fluid >
<Navbar.Header>
<Navbar.Brand>
<a href="#">Brand</a>
</Navbar.Brand>
<Navbar.Toggle />
</Navbar.Header>
<Navbar.Collapse>
<Nav>
<NavItem eventKey={1} href="#">Hello</NavItem>
<NavItem eventKey={2} href="#">World</NavItem>
</Nav>
</Navbar.Collapse>
</Navbar>
)}
}
But what I actually want it to be
[ World Hello Brand ]
I tried using pullRight
on the <Navbar
but it didn't work. I also added <html dir="rtl">
, but this also didn't help. How can I do it?