0
how to float three div side by side ?
5 Antworten
+ 1
Add the 'float: left' style and control spacing between them through 'margin' style.
Don't forget to clear the float for the element that comes after these divs: 'clear: left'.
0
try display: flex; and flex box properties
0
to zinc: please, I tried in other web-editor, seems clear float is not working? the following contents keep to the margins side of the last floated elements, you think anything wrong?
0
@Cheukyan Did you try clear: both;?
Sorry for the late answer.
- 1
well, u could also try setting the display property of the element and its siblings to inline-block just like this ;
(selector){
display : inline-block;
}