On my website, I have two divs - one on the left side and the other on the right side. However, the client has requested that I do not use float:right
. Instead, I have opted for margin-left
. What are the advantages of avoiding float:right
? Is it better to use margin-left
or float:right
? Am I mistaken in my approach? Any guidance would be appreciated.
#left
{
float:left;
width:200px;
}
#right
{
float:right;
width:200px;
}
or
#left
{
float:left;
width:200px;
}
#right
{
margin-left:250px;
width:200px;
}