PDA

View Full Version : postion relative error?


mampwamp2
11-05-2012, 02:48 AM
i trying to arrange the control on the right, but it got some problem.
image below 1st is the html rendering, image 2nd is the way that i want.
http://i.imgur.com/QfHHi.jpg
can help me take a look what's the problem?

html code
<div id="box">
<div class"text">title </div>
<div id="control">
<div id="a"></div>
<div id="b"></div>
</div>

</div>css script
body {
margin: 0x;
padding: 0;

}
#box{
height:70px;
width:800px;
background:#CCC;
padding:10px;
position:relative;
}
div.text{
float:left;
height:15px;
width:50px;
}
#control{
float:right;
}
#a{
background:#06F;
height:50px;
width:50px;
float:right;
}
#b{
background:#F93;
height:50px;
width:50px;
float:right;
}

edbr
11-05-2012, 07:19 AM
<div class="text">title </div>

domedia
11-05-2012, 12:48 PM
Put #control before the title in your markup.

hussam81
11-14-2012, 09:01 AM
<div class="text">title </div>can you profid me your email edbr>>>this is my email


khashanhossam@yahoo.com pls add me

hussam81
11-14-2012, 11:43 AM
can you provide me your email address >>>

edbr
11-16-2012, 06:54 AM
no, all questions should be public ion this forum