I'm currently in the process of creating a platform similar to Twitter, but I'm having trouble getting the sidebar, feed, and widgets aligned correctly. Take a look at the image to see what I mean. How can I adjust their positions so that they line up properly? What steps do I need to take to ensure they stay side by side? View how the clone appears now
Below are the CSS codes for the app, sidebar, feed, and widgets. Please review them to see where the issue may lie. For APP:
body {
–twitter-color: #50b7f5;
–twitter-background: #e6ecf0;
}
.app {
display: flex;
height: 100vh;
max-width: 1300px;
margin-left: auto;
margin-right: auto;
padding: 0 10px;
}
For feed (focusing on positioning):
.feed {
flex: 0.4;
border-right: 1px solid var(–twitter-background);
min-width: fit-content;
overflow-y: scroll;
for sidebar:
.sidebar {
border-right: 1px solid var(–twitter-color);
flex: 0.25;
min-width: 250px;
padding-top: 20px;
padding-left: 20px;
padding-right: 20px;
}
for widgets:
.widgets {
flex: 0.3;
}