Я тоже было вспомнил про таблицы.
Давайте поработаем с этим простым примером:
CODE ( html):
скопировать код в буфер обмена
<div id="parent"> <div id="inner"> <label>Name Name Name Name</label> <input id="text" type="text" /> </div> <p>some paragraph text</p> </div> <style> #inner { display: table; width: 100%; } #text { display: table-cell; width: 100%; } label{ display: table-cell; white-space: nowrap; width: 1%; } </style>
100%-я ячейка вылезает за край немного.(Отредактировано автором: 23 Июня, 2014 - 10:40:26)
|