What is the meaning of the terms "Normal Flow" and "Out of Flow", in terms of HTML, CSS and Browser?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
Out of Flow is any element that has been positioned relatively or absolutely or anything that has been floated.
The rest would be considered Normal Flow.
Look at CSS Positioning and Layout and pay close attention to the "Methods of Positioning Elements" section.
The
static
andrelative
elements still in theNormal Flow
, but theabsolute
andfixed
elements are removed out of the flow.from http://www.w3.org/TR/CSS21/visuren.html#choose-position
......
also you can read more about css positioning here: The position declaration
"Normal Flow" is the typical way the browser renders, with consideration of the elements around it and other elements considerations for it. "Out of Flow" means the element is "ignored" or the behavior "changed" by elements around it. Edited this next sentence: Thus, if an element is anything other than
static
(the default) it may be out of flow (I say may, because forrelative
to be out of flow, it must be shifted) or if the element has afloat
then it becomes "out of flow" because it does not follow either a normalinline
standard of one element after another in a line or a normalblock
standard of elements stacking on each other down the page. This page is (of course) more thorough in understanding this: http://www.w3.org/TR/CSS2/visuren.html