Answer the question
In order to leave comments, you need to log in
Why doesn't float create a line break?
I read: "Block elements are characterized by the fact that they take up the entire available width, the height of the element is determined by its content, and it always starts on a new line."
I understand on the fingers:
<div class="" style="background-color: red;">Первый </div>
<div class="" style="background-color: green;>Второй </div>
<div class="" style="background-color: yellow;">Третий </div>
<div class="" style="background-color: red;">Первый </div>
<div class="" style="background-color: green; float: right">Второй </div>
<div class="" style="background-color: yellow;">Третий </div>
Answer the question
In order to leave comments, you need to log in
Why does float suddenly break the definition of block elementsso because it wraps the element. First, read about its properties. An element given a float will wrap around the previous element
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question