I have three div
's, #left_sidebar
, #records_list
and #right_sidebar
, I want to display them inline, but when I using display:inline-block
, all seems to be fine but sidebars placing on the bootom of page, then I try to use float
, but still getting some creppy behavior, then I do this:
#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;
}
(you see mix from float
's and display
), and all works fine, so can somebody explain me, if it right? Or I need do this somehow else? Thanks!
P.S. If you need more info, or it a little bit unclearly what I am asking just say, and I will try to improve question.