T
theo
Cheers,
What is the acceptable fashion for putting 3 divs side-by-side? I've seen
examples in horizontal menus, and they all were float:left; so that they all
were riding up against each other. Example below, left and mid were floated
left, and the right box floated to the right. Seems to work this way also,
but is this kosher? Is all float:left best?
Thanks,
cc
#left {
margin: 0% .1%;
padding:0;
height:81px;
width:20%;
float:left;
border:1px solid #000000;
text-align:center;
}
#mid {
margin:0% 0%;
padding:0;
height:81px;
float:left;
width:59%;
border:1px solid #000000;
text-align:center;
}
#right {
margin:0% .1%;
padding:0;
height:81px;
width:20%;
float:right;
border:1px solid #000000;
text-align:center;
}
What is the acceptable fashion for putting 3 divs side-by-side? I've seen
examples in horizontal menus, and they all were float:left; so that they all
were riding up against each other. Example below, left and mid were floated
left, and the right box floated to the right. Seems to work this way also,
but is this kosher? Is all float:left best?
Thanks,
cc
#left {
margin: 0% .1%;
padding:0;
height:81px;
width:20%;
float:left;
border:1px solid #000000;
text-align:center;
}
#mid {
margin:0% 0%;
padding:0;
height:81px;
float:left;
width:59%;
border:1px solid #000000;
text-align:center;
}
#right {
margin:0% .1%;
padding:0;
height:81px;
width:20%;
float:right;
border:1px solid #000000;
text-align:center;
}