|
|
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Здравствуйте, подскажите как сделать резиновый Input, чтобы при уменьшении окна браузера Input уменьшался, оставляя отступ от правого края окна, например 100px. Вот код: <div class="search_ether" id="search_ether"> <form action="URL"> <button type="submit" formmethod="post" name="start_search" class="start_search" id="start_search">Поиск</button> <div class="search_box" id="search_box" name="call"> <label for="start_search"> <input type="search" name="search_box_qw" class="search_box_qw" id="search_box_qw" style="padding: 0px 0px 0px 5px"/> </label> </div> </form> </div> #search_box_qw { height: 32px; width: 500px; border: solid 1.5px #c4c4c4; margin-left: -5px; } А то если я уменьшаю, то у меня кнопки наезжают на окно поиска(imput), а если уменьшить еще сильнее, то вообще окно съезжает вниз. Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.03.2015, 22:29 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Naki34как сделать резиновый Input Для начала сделай резиновый див... ;) Потом помести в него инпут, убери у него бордюр, сделай ему высоту и ширину 100%. И ву а ля! У тебя резиновый инпут. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.03.2015, 08:10 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Спасибо, сейчас попробую)) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.03.2015, 18:02 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
сделал, как говорилось, но получилась что то странное и далекое от идеала)) помогите... вот код, который соответствует стилям на картинке: <code> #search_box_qw { height: 100%; width: 100%; margin-left: -5px; } #search_ether { height: 32px; width: 200px; display: inline; position: fixed; margin-left: 220px; margin-top: 9px; } #search_box { height: 100%; width: 100%; display: inline; } </code> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.03.2015, 19:08 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Naki34, а чем таблица не устроила? Вот пример, даже кнопки нажимаются Код: html 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.03.2015, 21:47 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
user89, Спасибо за помощь. Но можно ли как нибудь это Дивами сделать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.03.2015, 23:39 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Naki34, можно, но мучений больше. А смысл? Если таблицами проще, то почему бы не воспользоваться? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.03.2015, 09:09 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
_user89но мучений больше Да ладно! Но все равно будет на таблицу похоже... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.03.2015, 09:29 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
krvsa, Посмотрите код, пожалуйста, я сделал, вроде, так как вы сказали, но получилось не особо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.03.2015, 12:37 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Naki34Посмотрите код Нужно делать не "код", а тестовый пример, как сделал user89 . Его можно скопировать себе, посмотреть и при желании подправить... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.03.2015, 13:28 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Naki34 Код: css 1. Ужос! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.03.2015, 13:29 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
krvsa, <code> <!doctype html> <html> <head> <meta charset="utf-8"> <title>index</title> <style type="text/css"> * { margin: 0; padding: 0; } body { background: url(../images/background.png); #e6e4e9; font-size } #header { max-width: auto; height: 50px; background: #ffffff; border-bottom: solid 1.5px #c4c4c4; } #qwerty { display: inline; } #start_search { height: 32px; width: 70px; background: #ffffff; border: solid 1.5px #c4c4c4; cursor:pointer; outline: none; } #start_search:hover { background:#e9e9e9; } #search_box_qw { height: 32px; width: 500px; border: solid 1.5px #c4c4c4; margin-left: -5px; } #search_ether { display: inline; position: fixed; margin-left: 220px; margin-top: 9px; } #search_box { display: inline; } #start_search { margin: 0px; } #language { height: 32px; width: 32px; cursor:pointer; border: solid 1.5px #c4c4c4; position:absolute; right: 15px; top: 9px; -webkit-appearance: none; -moz-appearance: none; appearance: none; } #language:hover { background:#e9e9e9; } #enter { height: 32px; width: 60px; background: #ffffff; cursor:pointer; border-style:solid ; border: solid 1.5px #c4c4c4; position:absolute; right: 75px; top: 9px; outline: none; } #enter:hover { background:#e9e9e9; } </style> </head> <body> <div id="header"> <div class="search_ether" id="search_ether"> <form action="URL"> <button type="submit" formmethod="post" name="start_search" class="start_search" id="start_search">Поиск</button> <div class="search_box" id="search_box" name="call"> <label for="start_search"> <input type="search" name="search_box_qw" class="search_box_qw" id="search_box_qw" style="padding: 0px 0px 0px 5px"/> </label> </div> </form> </div> <div class="user_settings" id="user_settings"> <input name="enter" type="button" id="enter" value="Войти" onclick="location.href = '../login.php' "> <select id="language" name="language" style="color: #464646"> <option selected="selected" value>Ru</option> <option>Ru</option> <option>En</option> <option>Ge</option> <option>Fr</option> <option>It</option> <option>Sp</option> <option>Ukr</option> </select> </div> </div> </html> </code> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.03.2015, 17:34 |
|
||
|
резиновый input
|
|||
|---|---|---|---|
|
#18+
Naki34, Садомазо с дивами, всё пропорционально уменьшается. Уверен, есть и более простой вариант... Код: html 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.03.2015, 19:45 |
|
||
|
|

start [/forum/topic.php?fid=22&tid=1446201]: |
0ms |
get settings: |
7ms |
get forum list: |
15ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
195ms |
get topic data: |
6ms |
get forum data: |
3ms |
get page messages: |
33ms |
get tp. blocked users: |
1ms |
| others: | 201ms |
| total: | 465ms |

| 0 / 0 |
