renovations
This commit is contained in:
parent
dceccedb58
commit
6ac9e3a500
182 changed files with 275 additions and 324 deletions
11
8-css-for-js/6-css-center/2-form-modal/solution.md
Normal file
11
8-css-for-js/6-css-center/2-form-modal/solution.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Структура решения
|
||||
|
||||
Шаги решения:
|
||||
<ol><li>
|
||||
Для того, чтобы элементы окна не работали, их нужно перекрыть `DIV'ом` с большим `z-index`.</li>
|
||||
<li>Внутри него будет лежать "экран" с полупрозрачностью. Чтобы он растягивался, можно дать ему `position: absolute` и указать все координаты `top/left/right/bottom`. Это работает в IE8+.</li>
|
||||
<li>Форму можно отцентрировать при помощи `margin` или `display: table-cell` + `vertical-align` на внешнем `DIV`.</li>
|
||||
</ol>
|
||||
|
||||
# Решение
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue