0

How different these properties?

How different between "float" and "overflow"? I m not that clear. .div1 {float:left} .div2 {overflow:left}

30th Nov 2017, 7:45 AM
Hein Soe
Hein Soe - avatar
3 Answers
+ 7
float used to move a content like align ex: <div class='div1'></div> <style> .div1 {float: right} </style> // any tag with class div1 will moved to/hang on right overflow used for minimize over-size content ex: <div class='div2'></div> <style> .div2 { max-width: 200px; max-height: 200px; overflow: scroll; } </style> // any tag with class div1 with width/height size over 200px, the content must scrolled to see the rest test it in code playground. hope it help
30th Nov 2017, 9:30 AM
Amethyst Animion
Amethyst Animion - avatar
+ 3
Woah code master in the room!
30th Nov 2017, 11:00 AM
JOHNTHEBUN
JOHNTHEBUN - avatar
0
how stupid i m? 😁😁
1st Dec 2017, 3:55 AM
Hein Soe
Hein Soe - avatar