I came across this article http://www.thefloatingfrog.co.uk/css/my-hatred-of-br-clearall/
When will you need to use it? Why is this evil? I do not understand the syntax of substitution, which you can explain?
Set cleanup for both, preventing other elements from floating on the left or right side of the element. The next class is an easy way to add this anywhere.
.clear { clear:both; }
So, when you want to clear something (that is, if you were to float the next element to the left, it would be below the current element and to the left, and not to the left of it), you would simply add a .clear class.
, , "-", HTML- "clear" = "" "-".
<div class="something">Cool content.</div> <br clear="all"> <div class="other">Cool content again.</div>
- :
.something { float: left; } .other { clear :both; float: left; } <div class="something">Hi!</div> <div class="other">Hi again from below!</div>
, "" , "clear: both;" CSS .
- , , , , , .
, , , , CSS , , , , . ? , -, , , (, ) (, , ), CSS . CSS - .
, , , , . ? , <br clear="all">, , , . . , .
<br clear="all">
CSS, , , , , . , clear, floats. , .
clear
, , CSS - . - , . , . , float http://css-tricks.com/the-how-and-why-of-clearing-floats/
, . , , . , correct .
, , , , , , .
, CSS DIV. , "clear".
, . - -, HTML, br, , CSS HTML, , .
A reasonable excuse as these simple, dumb lines of code can cause a lot of headaches.
Source: https://habr.com/ru/post/1784307/More articles:Determining where a function is defined in C #? - methodsПроблема с загрузкой множества пользовательских элементов управления - performanceusing jquery $ .post () to return multiple values - variablesDownload remote csv to CHCSVParser - iphoneWin conditions for a game like connect-4 - c ++query optimization on Sql Server 2005 - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1784309/refreshing-pages-too-much&usg=ALkJrhjRgrWzoYllwmPW3-U4zHtQ1tThYgWhy is there a / postfix ++ prefix but no / postfix + = prefix? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1784311/how-to-send-simulated-keyboard-strokes-to-the-active-window-using-sendkeys&usg=ALkJrhgB5zgaIpR9-hBlBYJMUhTOy-Zu6ADrowning a file from server to client with servlet - javaAll Articles