I'm trying to display three divs - #left_sidebar, #records_list, and #right_sidebar - inline on my webpage. Initially, I used display:inline-block, but the sidebars ended up at the bottom of the page. Then, I attempted using float, but it resulted in some unexpected behavior. Finally, I combined float and display properties as follows:
#left_sidebar {
top: 0px;
width: 142px;
float: left;
}
#records_list {
width: 530px;
display: inline-block;
}
#right_sidebar {
background-image: url('../images/enstein_banner.png');
width: 174px;
height: 231px;
float: right;
}
By mixing float and display settings, everything now displays correctly. Can someone confirm if this approach is correct or suggest an alternative method? Thank you!
P.S. Feel free to ask for more information if my question is unclear.