Hi.
I'm trying to put 3 divs on the same line, but it doesnt work.
My HTML part is:
And the CSS is:
And the result I'm getting is:
The 3 divs each has a background image for left, middle and right.
The border is just there to show the area they are confined to (have tried adjusting its size, no luck).
So can anyone please tell me why the right image won't place itself where it's supposed to be? :)
I'm trying to put 3 divs on the same line, but it doesnt work.
My HTML part is:
Code:
<div id="frame_twrap"> <div id="frame_tl"></div> <div id="frame_t"></div> <div id="frame_tr"></div> </div>
Code:
#frame_twrap {
top: 50px;
width: 944px;
height: 22px;
border: 1px solid black;
position: relative;
clear: both;
}
#frame_tl, #frame_tr, #frame_t {
background-repeat: no-repeat;
width: 22px;
height: 22px;
display: block;
z-index: 99;
margin: 0 auto;
}
#frame_tr {
background-image: url(skin/new/frame_top_r.png);
float: right;
}
#frame_tl {
background-image: url(skin/new/frame_top_l.png);
float: left;
}
#frame_t {
background-image: url(skin/new/frame_top.png);
background-repeat: repeat-x;
width: 900px;
}
And the result I'm getting is:
The 3 divs each has a background image for left, middle and right.
The border is just there to show the area they are confined to (have tried adjusting its size, no luck).
So can anyone please tell me why the right image won't place itself where it's supposed to be? :)
Comment