Форум программистов, компьютерный форум, киберфорум
HTML, CSS
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.86/7: Рейтинг темы: голосов - 7, средняя оценка - 4.86
8 / 8 / 0
Регистрация: 19.06.2011
Сообщений: 82

Сделать интерфейс резиновым

23.07.2011, 21:15. Показов 1441. Ответов 4
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
CSS
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
 
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
a:link {
color:gray;
text-decoration:none;
}
a:visited {
color:gray;
text-decoration:none;
}
a:hover {
color:#2e99d7;
text-decoration:none;
}
a:active {
color:#2e99d7;
text-decoration:none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
 
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
 
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
.on_img
{
  background-image:url("over.png")/*tpa=http://site.ru/over.png*/;
  background-repeat:no-repeat;
 
  padding-left:35px;
  
 
  cursor:pointer;
   width:60px;
  
  
}       
 
.over_img
{
  background-image:url("on.png")/*tpa=http://site.ru/on.png*/;
  background-repeat:no-repeat;
  
   padding-left:35px;
 
  cursor:pointer;
  width:60px;
}
html, body, #wrapper{
margin: 0;
padding: 0;
width: 100%;
height: 100%;
min-height: 100%;
}
html>body, html>body #wrapper{
height: auto;
}
 
body{
margin:0;
padding:0;
font-size:13px;
font-family: verdana, sans-serif;
color:#7e7e7e;
background:#fff url("wrapper.jpg")/*tpa=http://site.ru/i/wrapper.jpg*/ repeat-x bottom;
line-height:1.3em;
}
.inviz {font-size: 0px; color: #D2DCE5; *display: none;}
#wrapper{
    position: absolute;
    top: 0;
    left: 0;
    overflow:hidden;
    background:url("body_line.jpg")/*tpa=http://site.ru/i/body_line.jpg*/ repeat-x top;
}
#fileInput {
    width:593px; /* вот незадача, FF не хочет задавать ширину, для этого зададим size */
    height:40px;
    position:absolute;/* позиционируем настоящий input type=file */
    left:0;
    top:0;
    opacity: 0;/* задаем нулевую видимость */
    filter:alpha(opacity=0);
}
#fileInputText {
    border:1px solid #c0c0c0;
    width:60%;
    font-size:22px;
 
}
#fileInput:hover{
    cursor:pointer;
}
img{
    border:none;
    margin:0;
    padding:0;
}
 
a{
    margin:0;
    padding:0;
    text-decoration:none;
}
 
a:hover{
    text-decoration:none;
}
 
ul{
    margin:0;
    padding:0;
    list-style:none;
}
 
h1,h2{
    font-family:Arial;
    font-size:18px;
    font-weight:normal;
}
#bodywrap{
    width:1000px;
    margin:0 auto;
}
#header{
    position:relative; 
    z-index:500;
    width: 100%;
    padding-top:33px;
    padding-bottom:12px;
}
#header .clear{
    height:32px;
}
a#home_link img{
    margin-top:4px;
}
form#loginform{
    float:right;
    margin-right:10px;
}
form#loginform input{
    background: none repeat scroll 0 0 #FFFFFF;
    color: #ADACAC;
    font-family: Arial;
    font-size: 12px;
    padding: 3px 2px;
    text-align: center;
    vertical-align: middle;
    width: 175px;
    margin-left:3px;
}
form#loginform input#l, form#loginform input#p{
    border: 1px solid #C0C0C0;
 
}
form#loginform input#submit{
    background: url("upload.png")/*tpa=http://site.ru/i/upload.png*/ no-repeat left top;
 
    /*background:url(i/submit.jpg) repeat-x left top;*/
    color: #FFFFFF;
    padding: 3px 10px;
    width: auto;
    outline:0 none;
    border:none;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px;
    border-radius: 3px;
    behavior: url("PIE.htc")/*tpa=http://site.ru/pie/PIE.htc*/;
}
form#loginform input#submit:active{
    background-position:0 -28px;
}
#content{
    
}
 
#content p{
    padding:6px 0;
    line-height:1.2em;
}
#footer{
    bottom: 0;
    width: 1000px;
    height: 88px;
    overflow:hidden;
    clear:both;
    text-align:center;
    background:url("footer.jpg")/*tpa=http://site.ru/i/footer.jpg*/ repeat-x bottom;
    border:1px solid #9edcfb;
    -moz-border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    -khtml-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
    behavior: url("PIE.htc")/*tpa=http://site.ru/pie/PIE.htc*/;
    position:relative;
}
#footertext{
    padding:35px;
}
#footertext p{
    display:inline;
    margin:0 80px;
}
#footertext p img{
    vertical-align:middle;
}
 
 
/* \*/
* html #footer {
position: absolute;
}
* html #contentwrapper {
padding-bottom: 100px;
}
/* \*/
head:first-child+body div#footer {
position: absolute;
z-index:0;
}
head:first-child+body div#contentwrapper {
padding-bottom: 100px;
}
 
@media all and (min-width:0px) {
head~body {height:100%;}
}
.clear{
    clear:both;
}
 
 
input.button, input.button_s, input.button#send{
    background: url("upload.png")/*tpa=http://site.ru/i/upload.png*/ no-repeat left top;
    color: #FFFFFF;
    padding: 5px 23px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px;
    border-radius: 3px;
    behavior: url("PIE.htc")/*tpa=http://site.ru/pie/PIE.htc*/;    
    font-size:12px;
    border:none;
    font-family: Tahoma;
    position:relative;
}
input.button#send{
    background: url("blue_upload.png")/*tpa=http://site.ru/i/blue_upload.png*/ no-repeat left top;
}
input.button_s{
    padding:4px 10px;
}
input.button:active, input.button_s:active, input.button#send:active{
    background-position:0 -28px;
}
 
#content.profile input.button{
    padding: 6px 3px;
}
 
/*--main--*/
 
#load{
    background:#fff url("load.jpg")/*tpa=http://site.ru/i/load.jpg*/ repeat-x bottom;
    border:1px solid #c0c0c0;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
    behavior: url("PIE.htc")/*tpa=http://site.ru/pie/PIE.htc*/;
    position:relative;
    padding: 18px 10px 22px;
    width:600px;
    margin: 125px auto 0;
}
#load form{
    padding-bottom:8px;
    position:relative; /* чтобы можно было позиционировать абсолютно элементы внутри формы */
    padding:0;
    margin:0;
}
#load form input{
    vertical-align:middle;
}
#fileInput:hover{
    cursor:pointer;
}
 
#load img{
    vertical-align:middle;
    margin-right:4px;
}
#load a{
    color: #2D98D7;
    font-family: Tahoma;
    font-size: 13px;
    font-weight: bold;
    text-decoration:none;
}
#load a:hover{
    text-decoration:none;
}
 
.hidden{
    padding:12px 0;
}
 
 
.checkbox, .radio {
    width: 23px;
    height: 25px;
    padding: 0 12px 0 0;
    background: url("checkbox.gif")/*tpa=http://site.ru/i/checkbox.gif*/ no-repeat;
    display: block;
    clear: left;
    float: right;
}
 
.select {
    position: absolute;
    width: 260px; /* With the padding included, the width is 190 pixels: the actual width of the image. */
    height: 28px;
    padding: 2px 24px 0 8px;
    color: #000;
    font: 12px/21px arial,sans-serif;
    background: url("select.gif")/*tpa=http://site.ru/i/select.gif*/ no-repeat;
    overflow: hidden;
}
 
.hidden label{
    float: right;
    margin-right: 14px;
    margin-top: 3px;
    vertical-align: middle;
}
 
 
 
/*--about--*/
 
h2.title{
    color: #000000;
    font-family: Tahoma;
    font-size: 14px;
    font-weight: normal;
    padding-bottom: 16px;
}
 
.textwrap{
    background:#e8e8e8;
    padding:8px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
    behavior: url("PIE.htc")/*tpa=http://site.ru/pie/PIE.htc*/;
    position:relative;
    color:#000;
}
 
 
/*--download--*/
 
ul.list li{
    float:left;
    margin:0 4px 16px;
}
ul.list li a{
    color:#000!important;
    font-weight:normal!important;
}
ul.list li a img{
    float: left;
    margin-right: 6px;
    margin-top: 2px;
}
#content.download {
    color:#000;
}
#content.download  .textwrap{
    clear: both;
}
#content.download  .textwrap img.alignleft{
    float:left;
    border:1px solid #bbbbbb;
    margin:0 12px 6px 0;
}
 
ul.info li{
    padding:2px 0;
}
#content.download h2.title{
    padding:8px 0;
    font-weight:bold;
}
#content.download a{
    color:#2e99d7;
    font-weight:bold;
}
#content.download small{
    font-size:11px;
    display:block;
}
#content.download textarea{
    border:1px solid #c8c8c8;
    width:485px;
    height:75px;
    float:left;
    margin-right:12px;
}
 
input#captcha{
    border:1px solid #c8c8c8;
    margin:6px 0;
    padding:0 2px;
    width:75px;
}
 
 
/*--profile--*/
 
#content.profile ul.info li{
    padding:6px 0;
}
 
#content.profile .textwrap{
    clear:both;
    overflow:hidden;
}
 
#content.profile form{
    float:right;
}
 
 
/*--mail--*/
#content.mail{
    color:#000;
}
ul.message_list {
    float:left;
}
ul.message_list  li{
    float:left;
    margin-right:12px;
}
ul.message_list li a{
    color:#2e99d7;
    font-weight:bold;
}
ul.message_list li#date{
    border-right: 1px solid;
    padding-right: 12px;
}
#content.mail ul.list{
    float:right;
}
#content.mail ul.list li img{
    vertical-align:middle;
}
 
#content.mail h2.title{
    padding:8px 0;
    font-weight:bold;
}
 
#content.mail textarea{
    width:990px;
    height:105px;
    border:1px solid #c8c8c8;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
    behavior: url("PIE.htc")/*tpa=http://site.ru/pie/PIE.htc*/;
}
 
#content.mail .text{
    padding-bottom:24px;
}
 
#content.mail form#replyform, #content.mail input#send{
    float:right;
    margin:8px 0;
}
 
/*--files--*/
table.files{
    width:99%;
    color:#000;
}
table.files th, table.files td{
    padding:4px 8px;
    text-align:center;
}
table.files th{
    background:#e8e8e8;
    font-weight:normal;
    padding:5px 8px 6px;
}
table.files td{
    border-bottom:1px dashed #bdbdbd;
}
table.files td.blue{
    background:#e8f1f5;
}
table.files td a{ilgiz.square7.ch
    color:#2e99d7;
    font-weight:bold;
}
 
table.files td.blue.link, table.files td.name, table.files th.name{
    text-align:left;
}
CSS
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#menu {
    background:url("menu.jpg")/*tpa=http://site.ru/i/menu.jpg*/ repeat-x left top;
    padding:0; 
    margin:0; 
    list-style:none; 
    height:35px; 
    position:relative; 
    z-index:500; 
    border:1px solid #41abe9;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
    behavior: url("PIE.htc")/*tpa=http://site.ru/pie/PIE.htc*/;
    position:relative;
}
#menu li{
    float:left; 
    margin-right:1px;
}
#menu li a {
    float:left; 
    height:37px; 
    line-height:37px;  
    color:#fff; 
    font-size:14px; 
    padding: 0px 30px;
 
}
 
#menu table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}
 
/* Default link styling */
 
/* Style the list OR link hover. Depends on which browser is used */
 
#menu li a:hover {
    z-index:200; 
    position:relative;
    color:#fff; 
    background:url("current.jpg")/*tpa=http://site.ru/i/current.jpg*/ no-repeat left top;
    text-decoration:none;
}
#menu li:hover {position:relative; z-index:200;}
 
#menu li:hover > a {background:url("current.jpg")/*tpa=http://site.ru/i/current.jpg*/ no-repeat center top;}
#menu li:hover > a.sub {background:url("current.jpg")/*tpa=http://site.ru/i/current.jpg*/ no-repeat center top;}
 
#menu li.current a {color:#fff; background:url("current.jpg")/*tpa=http://site.ru/i/current.jpg*/ no-repeat center top;}
 
#menu li.current a.sub {color:#fff; background:url("current.jpg")/*tpa=http://site.ru/i/current.jpg*/ no-repeat center top;}
 
#menu :hover ul {
    left:0; 
    top:37px; 
    width:140px; 
    background:#fff;
    border-bottom:1px solid #c0c0c0;
}
 
/* keep the 'next' level invisible by placing it off screen. */
#menu ul, 
#menu :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}
 
#menu :hover ul{
    border:1px solid #c0c0c0;
    height:auto;
    width:auto;
    padding-top:3px;
    z-index:200; 
}
#menu :hover ul :hover ul{
    left:160px; 
    _left:140px; 
    top:-1px; 
    background:#fff; 
    white-space:nowrap; 
    width:auto;
    z-index:200; 
    height:auto;
    border-bottom:1px solid #c0c0c0;
    border-top:1px solid #c0c0c0;
}
 
#menu :hover ul li {
    margin:0; 
    padding:12px;
    background:#fff; 
}
#menu :hover ul li a {
    background:none;
    width:140px; 
    padding:0; 
    text-indent:10px; 
    color:#7e7e7e; 
    height:12px; 
    line-height:12px;
}
 
#menu :hover ul :hover {text-decoration:none;}
#menu :hover ul :hover a.fly {}
 
#menu :hover ul li.currentsub a {}
#menu :hover ul li.currentsub a.fly {}
 
#menu :hover ul :hover ul li a {width:120px; padding:0; text-indent:10px;}
#menu :hover ul :hover ul :hover {}
 
#menu :hover ul :hover ul li.currentfly a,
#menu :hover ul :hover ul li.currentfly a:hover {}
 
#menu ul li a{
    text-decoration:underline!important;
}
#menu ul li a:hover{
    text-decoration:none!important;
}
за помощь могу подарить пару 7* знаков
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
23.07.2011, 21:15
Ответы с готовыми решениями:

Сделать резиновым шаблон
Доброго времени суток! Помогите пожалуйста наладить шаблон. Отверстал дизайн отображается хорошо но заказчик требует именно...

Сделать фон с hover резиновым
Здравствуйте. Нужно что бы при наведении мышки на картинку она менялась, js нельзя использовать. Реализовала так: <!DOCTYPE...

Не могу сделать сайт резиновым
Подскажите, пожалуйста, как сделать мне сайт резиновым. Я перечитал много статей, но так и не разобрался. Код CSS: /* Contango Table...

4
97 / 36 / 6
Регистрация: 05.07.2011
Сообщений: 382
23.07.2011, 22:01
Просто указывай ширину не в px, а в % и на разных экранах она будет растягиваться - это и есть резиновый шаблон !
0
8 / 8 / 0
Регистрация: 19.06.2011
Сообщений: 82
23.07.2011, 22:06  [ТС]
Цитата Сообщение от prince2011 Посмотреть сообщение
Просто указывай ширину не в px, а в % и на разных экранах она будет растягиваться - это и есть резиновый шаблон !
я это знаю просто ча нет всего что нужно под рукой я просил помощи потому что 1 несправлюсь
0
97 / 36 / 6
Регистрация: 05.07.2011
Сообщений: 382
23.07.2011, 22:09
И что Вам нужно ?
1
8 / 8 / 0
Регистрация: 19.06.2011
Сообщений: 82
23.07.2011, 23:51  [ТС]
спс уже сам справился
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
23.07.2011, 23:51
Помогаю со студенческими работами здесь

Как сделать сайт адаптивным?(Резиновым)
Здраствуйте, дорогие форумчани! Я сверстал сайт с макета PSD. Но на телефоне(андроид) сайта почти не видно. Вот сообственно сам сайт ...

Как сделать тег div резиновым
Здравствуйте друзья. Подскажите: как можно сделать тег div резиновым, чтоб была максимальная ширина (например 1000px), и минимальная...

Как сделать сайт в три колонки и резиновым?
Помогите пожалуйста. У меня получился такой код. Сайт: http://test1siegmein.ucoz.ru/ Как сделать сайт в три колонки и резиновым. 1...

Как сделать сайт резиновым и выровнять по центру?
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ...

Подогнать страницу под разные мониторы (резиновым сделать). Как?
http://www.pokerbezdepa.ru/ Сайт на Ucoz. На обычном шаблоне. Верстаю на ноуте с широким монитором, как на квадратных он выглядит даже...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
5
Ответ Создать тему
Новые блоги и статьи
Автозаполнение реквизита при выборе элемента справочника
Maks 27.03.2026
Программный код из решения ниже на примере нетипового документа "ЗаявкаНаРемонтСпецтехники" разработанного в конфигурации КА2. При выборе "Спецтехники" (Тип Справочник. Спецтехника), заполняется. . .
Сумматор с применением элементов трёх состояний.
Hrethgir 26.03.2026
Тут. https:/ / fips. ru/ EGD/ ab3c85c8-836d-4866-871b-c2f0c5d77fbc Первый документ красиво выглядит, но без схемы. Это конечно не даёт никаких плюсов автору, но тем не менее. . . всё может быть. . .
Автозаполнение реквизитов при создании документа
Maks 26.03.2026
Программный код из решения ниже размещается в модуле объекта документа, в процедуре "ПриСозданииНаСервере". Алгоритм проверки заполнения реализован для исключения перезаписи значения реквизита,. . .
Команды формы и диалоговое окно
Maks 26.03.2026
1. Команда формы "ЗаполнитьЗапчасти". Программный код из решения ниже на примере нетипового документа "ЗаявкаНаРемонтСпецтехники" разработанного в конфигурации КА2. В качестве источника данных. . .
Кому нужен AOT?
DevAlt 26.03.2026
Решил сделать простой ланчер Написал заготовку: dotnet new console --aot -o UrlHandler var items = args. Split(":"); var tag = items; var id = items; var executable = args;. . .
Отправка уведомления на почту при изменении наименования справочника
Maks 24.03.2026
Программная отправка письма электронной почты на примере изменения наименования типового справочника "Склады" в конфигурации БП3. Перед реализацией необходимо выполнить настройку системной учетной. . .
модель ЗдравоСохранения 5. Меньше увольнений- больше дохода!
anaschu 24.03.2026
Теперь система здравосохранения уменьшает количество увольнений. 9TO2GP2bpX4 a42b81fb172ffc12ca589c7898261ccb/ https:/ / rutube. ru/ video/ a42b81fb172ffc12ca589c7898261ccb/ Слева синяя линия -. . .
Midnight Chicago Blues
kumehtar 24.03.2026
Такой Midnight Chicago Blues, знаешь?. . Когда вечерние улицы становятся ночными, а ты не можешь уснуть. Ты идёшь в любимый старый бар, и бармен наливает тебе виски. Ты смотришь на пролетающие. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru