Currently, I am working on arranging my sidebar and map so that they are displayed side by side instead of the sidebar appearing on top of the map (as shown in the image).
I'm seeking advice on how to achieve this layout using CSS because I have been struggling with it for some time now.
If anyone could provide assistance, I would greatly appreciate it!
I attempted to remove z-index, but that only resulted in hiding the sidebar.
EDIT: Below is how I am implementing these components (both are from libraries):
class DashboardView extends Component {
constructor(props) {
super(props);
}
render() {
return <div>
<div>
<Sidebar />
</div>
<div>
<Map />
</div>
</div>;
}
}
EDIT2: Here are the styles for the map. While adding margin-left: 64px
resolves the issue, I am wondering if there is an alternative solution that does not involve hardcoding 64px
.