-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translation(CSS): web/css/visual_formatting_model #1811
Conversation
|
||
**Незалежні форматувальні контексти** вміщають пливуни, а зовнішні поля не перекриваються через межі форматувального контексту. Тож створення нового блокового форматувального контексту може забезпечити, що пливуни та зовнішні поля залишаться всередині рамки. Для цього необхідно додати до рамки, на якій потрібний новий [блоковий форматувальний контекст](/uk/docs/Web/Guide/CSS/Block_formatting_context), `display: flow-root`. | ||
|
||
Наступний приклад демонструє дію `display: flow-root`. Рамка з чорним тлом ніби обгортає пливний елемент і текст. Якщо видалити з редагованого CSS `display: flow-root`, пливун виступатиме знизу рамки, оскільки він більше не буде обмежуватися всередині. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
омг, та це ж тепер православний clearfix 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я тільки побіжно це зустрів на початку кар'єри :-)
|
||
Читайте більше про [потокове компонування](/uk/docs/Web/CSS/CSS_flow_layout) в CSS. | ||
|
||
### Пливуни |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Навіває асоціацію зі старим колодязем. Не знаю, поки най буде, поведінка пливних елементів дещо нагадує властивості пливунів, хоча я б сам обирав якийсь інший варіант
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ще не пізно щось підкинути...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пара зауважень
Co-authored-by: Mykola Myslovskyi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still relevant?
Потрібно оновлення. Свіжі зміни: Перевірте, будь ласка, чи вони впливають на переклад. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relevant?
Перестворив #3295 |
Оригінальний вміст: Модель візуального форматування@MDN, сирці Модель візуального форматування@GitHub