0 / 0 / 0
Регистрация: 07.04.2016
Сообщений: 69
1

Блоку под слайдером задать высоту и позиционирование

10.07.2016, 20:01. Показов 3004. Ответов 3
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Всем привет) начал делать свой сайт компьютерной помощи, столкнулся с кучей проблем,т.к. делаю впервые. Кому не в лом, подскажите, почему у меня после слайдера див не принимает значения высоты и позиционирования. А вот еще, открываю это все через браузер, а там не слайдер, а картинки в столбик расположены. а в дримвивере все ок. Не понятная мне фигня))) Кстати, код слайдера я просто скопипастил и свои картинки подставил.
Заранее спасибо)

HTML5
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
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link href='https://fonts.googleapis.com/css?family=Exo+2:400,200,300,300italic,700,800&subset=cyrillic,latin' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<title>remcomp</title>
</head>
 
    <body>
        <article>
            <header class="head">
                <div class="robot">
                </div>
                <div class="info_head">
                Ремонт компьютеров и ноутбуков по СПб<br>и Ленинградской области
                </div>
                <nav class="one">
                <ul>
                    <li id="bottom_left"><a href="">Ремонт компьютеров</a></li>
                    <li id="bottom"><a href="">Ремонт ноутбуков</a></li>
                    <li id="bottom"><a href="">Услуги и цены</a></li>
                    <li id="bottom"><a href="">Гарантия качества</a></li>
                    <li id="bottom"><a href="">Отзывы</a></li>
                    <li id="bottom_right"><a href="">Контакты</a></li>
                </ul>
            </nav>
           </header>
         </article>
         
<article id=slider>
        
 
        <!-- MaxWidth Options -->
        
        
        <!-- Slider Setup -->
    
        <input checked type=radio name=slider id=slide1 />
        <input type=radio name=slider id=slide2 />
        <input type=radio name=slider id=slide3 />
        <input type=radio name=slider id=slide4 />
        <input type=radio name=slider id=slide5 />
    
    
        <!-- The Slider -->
 
        
        <div id=slides>
        
            <div id=overflow>
            
                <div class=inner>
                
                    <article>
                        <div class=info><h3>24 ЧАСА</h3> ТЕЛЕФОН  <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/CouldDragonByBjzaba.png" />
                    </article>
 
                    
                    <article>
                        <div class=info><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/MountainFortByBjzaba.png" />
                    </article>
                    
                    <article>
                        <div class=info><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
 
                        <img src="https://www.cyberforum.ru/images/MountainOutpostByBjzaba.png" />
                    </article>
                    
                    <article>
                        <div class=info><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/CliffsByBjzaba.png" />
                    </article>
                    
                    <article>
 
                        <div class=info><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/HillFortByBjzaba.png" />
                    </article>
                    
                </div> <!-- .inner -->
                
            </div> <!-- #overflow -->
        
        </div> <!-- #slides -->
 
    
    
        <!-- Controls and Active Slide Display -->
    
        <div id=controls>
 
            <label for=slide1></label>
            <label for=slide2></label>
            <label for=slide3></label>
            <label for=slide4></label>
            <label for=slide5></label>
        
        </div> <!-- #controls -->
 
        
        <div id=active>
 
            <label for=slide1></label>
            <label for=slide2></label>
            <label for=slide3></label>
            <label for=slide4></label>
            <label for=slide5></label>
            
        </div> <!-- #active -->
</article>
 
 
    
<div class="maintext">
блаблаблаблабла!!!!
</div>
 
</body>
</html>
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
body{
font-family: 'Exo 2', sans-serif;
width:1000px;
height:1500px;
margin:0 auto;  
    }
 
.robot{
    margin-top:10px;
    margin-left:50px;
    height:130px;
    width:103px;
    background:url(images/robot.png) no-repeat;
    }
.info_head{
    font-size:16px;
    width:320px;
    height:50px;
    margin-top:-115px;
    margin-left:678px;
    position:absolute;
    text-align:right;
        }
        
.header {
    position:relative;
    }
    
.one{
 
    position:absolute;
    width:1000px;
    height:50px;
    background:url(images/menu_bg.png) repeat-x;
    border-radius:10px;
    box-shadow:0 3px 5px rgba(0,0,0,0.4), 0 1px 0 #bccf9b inset, 0 -1px 0 rgba(0,0,0,0.2) inset;
    }
    
.one ul li{
    padding:0 8px;
    list-style-type: none;
    display:inline-block;
        }
.one ul li a{
    font-weight:400;
    color: white;
    text-decoration:none;
    display:block;
    padding:0 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.7);
    }
ul a:hover{
     
    color:#FFFFFF !important;
       transform: scale(1.1);
    
    }
    #slider {
    text-align: center;
}
 
h2 {
    margin: 40px 0 25px;
    border-bottom: 1px solid #bbb;
    padding: 0 0 10px;
}
 
p {
    margin: 0 0 16px;
}
 
strong { 
    font-weight: bold;
}
 
label, a {
    color: teal;
    cursor: pointer;
    text-decoration: none;
}
label:hover, a:hover {
    color: #000 !important;
}
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
label, #active, img { -moz-user-select:none;-webkit-user-select:none; }
.catch { display: block; height: 0; overflow: hidden; }
#slider {
    margin: 0 auto;
}
#description {
    margin: 25px auto;
    text-align: left;
    max-width: 650px;
    padding: 0 25px;
}
.respond {
    margin: 0 auto;
    max-width: 370px;
}
 
 
 
/* NEW EXPERIMENT */
/* Slider Setup */
 
input {
    display: none;
}
 
#slide1:checked ~ #slides .inner { margin-left:0; }
#slide2:checked ~ #slides .inner { margin-left:-100%; }
#slide3:checked ~ #slides .inner { margin-left:-200%; }
#slide4:checked ~ #slides .inner { margin-left:-300%; }
#slide5:checked ~ #slides .inner { margin-left:-400%; }
 
 
#overflow {
    width: 100%;
    overflow: hidden;
}
 
article img {
    width: 100%;
}
 
#slides .inner {
    width: 500%;
    line-height: 0;
}
 
#slides article {
    width: 20%;
    float: left;
}
 
/* Slider Styling */
 
/* Control Setup */
 
#controls {
    margin: -25% 0 0 0;
    width: 100%;
    height: 50px;
}
 
#controls label { 
    display: none;
    width: 50px;
    height: 50px;
    opacity: 0.3;
}
 
#active {
    margin: 23% 0 0;
    text-align: center;
}
 
#active label {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #bbb;
}
 
#active label:hover {
    background: #ccc;
    border-color: #777 !important;
}
 
#controls label:hover {
    opacity: 0.8;
}
 
#slide1:checked ~ #controls label:nth-child(2), 
#slide2:checked ~ #controls label:nth-child(3), 
#slide3:checked ~ #controls label:nth-child(4), 
#slide4:checked ~ #controls label:nth-child(5), 
#slide5:checked ~ #controls label:nth-child(1) {
    background: url('images/next.png') no-repeat;
    float: right;
    margin: 0 -70px 0 0;
    display: block;
}
 
 
#slide1:checked ~ #controls label:nth-child(5),
#slide2:checked ~ #controls label:nth-child(1),
#slide3:checked ~ #controls label:nth-child(2),
#slide4:checked ~ #controls label:nth-child(3),
#slide5:checked ~ #controls label:nth-child(4) {
    background: url('images/prev.png') no-repeat;
    float: left;
    margin: 0 0 0 -70px;
    display: block;
}
 
#slide1:checked ~ #active label:nth-child(1),
#slide2:checked ~ #active label:nth-child(2),
#slide3:checked ~ #active label:nth-child(3),
#slide4:checked ~ #active label:nth-child(4),
#slide5:checked ~ #active label:nth-child(5) {
    background: #333;
    border-color: #333 !important;
}
 
/* Info Box */
 
.info {
    line-height: 20px;
    margin: 0 0 -150%;
    position: absolute;
    font-style: italic;
    padding: 30px 30px;
    opacity: 0;
    color: #000;
    text-align: left;
}
 
.info h3 {
    color: #333;
    margin: 0 0 5px;
    font-weight: normal;
    font-size: 22px;
    font-style: normal;
}
 
/* Slider Styling */
 
#slides {
    margin: 45px 0 0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: 1px 1px 4px #666;
    padding: 1%;
    background: #fff;
    background: rgb(252,255,244); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(252,255,244,1) 0%, rgba(219,218,201,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,255,244,1)), color-stop(100%,rgba(219,218,201,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* IE10+ */
    background: linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#dbdac9',GradientType=0 ); /* IE6-9 */
}
 
 
/* Animation */
 
#slides .inner {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -moz-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -ms-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
     -o-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
        transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
 
    -webkit-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -moz-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -ms-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
     -o-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
        transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
}
 
#slider {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}
 
#controls label{
    -webkit-transform: translateZ(0);
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
}
 
#slide1:checked ~ #slides article:nth-child(1) .info,
#slide2:checked ~ #slides article:nth-child(2) .info,
#slide3:checked ~ #slides article:nth-child(3) .info,
#slide4:checked ~ #slides article:nth-child(4) .info,
#slide5:checked ~ #slides article:nth-child(5) .info {
    opacity: 1;
    -webkit-transition: all 1s ease-out 0.6s;
    -moz-transition: all 1s ease-out 0.6s;
    -o-transition: all 1s ease-out 0.6s;
    transition: all 1s ease-out 0.6s;
}
 
.info, #controls, #slides, #active, #active label, .info h3, .desktop, .tablet, .mobile {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}
 
/* Respond Options */
 
#desktop:checked ~ #slider {
    max-width: 960px;
}
 
#tablet:checked ~ #slider {
    max-width: 850px;
}
 
#mobile:checked ~ #slider {
    max-width: 450px;
}
 
#desktop:checked ~ #slider .desktop,
#tablet:checked ~ #slider .tablet,
#mobile:checked ~ #slider .mobile {
    color: #777;
    opacity: 1;
}
 
.desktop, .tablet, .mobile {
    display: inline-block;
    width: 60px;
    height: 60px;
    padding-top: 50px;
    opacity: 0.35;
    font-size: 12px;
}
 
.desktop:hover, .tablet:hover, .mobile:hover {
    opacity: 0.2;
}
 
.desktop {
    background: url('images/desktop.png') no-repeat;
}
 
.tablet {
    background: url('images/tablet.png') no-repeat;
}
 
.mobile {
    background: url('images/mobile.png') no-repeat;
}
 
/* Responsive Styling */
 
/* Tablet */
 
#tablet:checked ~ #slider #controls {
    margin: -25% 0 0 12%;
    width: 76%;
    height: 50px;
}
 
#tablet:checked ~ #slider #controls label {
    -moz-transform: scale(0.8);
    -webkit-transform: scale(0.8);
    -o-transform: scale(0.8);
    -ms-transform: scale(0.8);
    transform: scale(0.8);
}
 
#tablet:checked  ~ #slider #slides, #mobile:checked  ~ #slider #slides {
    padding: 1% 0;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
}
 
#tablet:checked ~ #slider #active {
    margin: 22% 0 0;
}
 
@media only screen and (max-width: 850px) and (min-width: 450px) {
 
    #slider #controls {
        margin: -25% 0 0 15%;
        width: 70%;
        height: 50px;
    }
 
    #slider #controls label {
        -moz-transform: scale(0.8);
        -webkit-transform: scale(0.8);
        -o-transform: scale(0.8);
        -ms-transform: scale(0.8);
        transform: scale(0.8);
    }
 
    #slider #slides {
        padding: 1% 0;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
    }
 
    #slider #active {
        margin: 22% 0 0;
    }
 
 
/* Mobile */
 
#mobile:checked ~ #slider #controls {
    margin: -28% 0 0 24%;
    width: 50%;
    height: 50px;
}
 
#mobile:checked ~ #slider #active {
    margin: 23% 0 0;
}
 
#mobile:checked ~ #slider #slides .info {
    opacity: 0 !important;
}
 
#mobile:checked ~ #slider #controls label {
    -moz-transform: scale(0.6);
    -webkit-transform: scale(0.6);
    -o-transform: scale(0.6);
    -ms-transform: scale(0.6);
    transform: scale(0.6);
}
 
 
@media only screen and (max-width: 450px) {
 
    #slider #controls {
        margin: -28% 0 0 24%;
        width: 50%;
        height: 50px;
    }
 
    #slider #active {
        margin: 23% 0 0;
    }
 
    #slider #slides {
        padding: 1% 0;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
    }
 
    #slider #slides .info {
        opacity: 0 !important;
    }
 
    #slider #controls label {
        -moz-transform: scale(0.6);
        -webkit-transform: scale(0.6);
        -o-transform: scale(0.6);
        -ms-transform: scale(0.6);
        transform: scale(0.6);
    }
    .maintext {
        width:1000px;
        height:500px;
        border-radius:10px;
        box-shadow:0 3px 5px rgba(0,0,0,0.4), 0 1px 0 #bccf9b inset, 0 -1px 0 rgba(0,0,0,0.2) inset;
        
}
0
Лучшие ответы (1)
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
10.07.2016, 20:01
Ответы с готовыми решениями:

Как подогнать высоту страницы под высоту экрана?
Здравствуйте, друзья! Подскажите, пожалуйста, как сделать так, чтобы высота страницы (например вот...

Задать бэкграунд блоку
Здравствуйте, дорогие форкмчане! У меня состоялся спор с коллегой по поводу background-image. ...

Задать ширину блоку
Здравствуйте! Пытаюсь двумя способами (через float-left и box-sizing: border-box) сделать колонки...

Прозрачность кнопочек навигации под слайдером
Подскажите пожалуйста как это реализовать вот на этой вот страничке http://slav-raduga.com.ua/...

3
20 / 20 / 11
Регистрация: 12.07.2015
Сообщений: 350
10.07.2016, 20:24 2
Лучший ответ Сообщение было отмечено Гоголь Моголь как решение

Решение

Уберите в файле css строки 379
CSS
1
@media only screen and (max-width: 850px) and (min-width: 450px) {
, 432
CSS
1
@media only screen and (max-width: 450px) {
. Тогда див работает нормально. А насчет картинок в слайдере: в каком браузуру вы работаете? У меня в chrome все нормально.
1
Эксперт HTML/CSS
2964 / 2599 / 1068
Регистрация: 15.12.2012
Сообщений: 9,876
Записей в блоге: 11
10.07.2016, 20:40 3
Гоголь Моголь, внимательнее верстайте стили и не забывайте оборачивать значение атрибутов в кавычки...
HTML5
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
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Exo+2:400,200,300,300italic,700,800&subset=cyrillic,latin" rel="stylesheet" type="text/css">
<style>
body{
font-family: "Exo 2", sans-serif;
width:1000px;
height:1500px;
margin:0 auto;  
    }
 
.robot{
    margin-top:10px;
    margin-left:50px;
    height:130px;
    width:103px;
    background:url(images/robot.png) no-repeat;
    }
.info_head{
    font-size:16px;
    width:320px;
    height:50px;
    margin-top:-115px;
    margin-left:678px;
    position:absolute;
    text-align:right;
        }
        
.header {
    position:relative;
    }
    
.one{
 
    position:absolute;
    width:1000px;
    height:50px;
    background:url(images/menu_bg.png) repeat-x;
    border-radius:10px;
    box-shadow:0 3px 5px rgba(0,0,0,0.4), 0 1px 0 #bccf9b inset, 0 -1px 0 rgba(0,0,0,0.2) inset;
    }
    
.one ul li{
    padding:0 8px;
    list-style-type: none;
    display:inline-block;
        }
.one ul li a{
    font-weight:400;
    color: white;
    text-decoration:none;
    display:block;
    padding:0 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.7);
    }
ul a:hover{
     
    color:#FFFFFF !important;
       transform: scale(1.1);
    
    }
    #slider {
    text-align: center;
}
 
h2 {
    margin: 40px 0 25px;
    border-bottom: 1px solid #bbb;
    padding: 0 0 10px;
}
 
p {
    margin: 0 0 16px;
}
 
strong { 
    font-weight: bold;
}
 
label, a {
    color: teal;
    cursor: pointer;
    text-decoration: none;
}
label:hover, a:hover {
    color: #000 !important;
}
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
label, #active, img { -moz-user-select:none;-webkit-user-select:none; }
.catch { display: block; height: 0; overflow: hidden; }
#slider {
    margin: 0 auto;
}
#description {
    margin: 25px auto;
    text-align: left;
    max-width: 650px;
    padding: 0 25px;
}
.respond {
    margin: 0 auto;
    max-width: 370px;
}
 
 
 
/* NEW EXPERIMENT */
/* Slider Setup */
 
input {
    display: none;
}
 
#slide1:checked ~ #slides .inner { margin-left:0; }
#slide2:checked ~ #slides .inner { margin-left:-100%; }
#slide3:checked ~ #slides .inner { margin-left:-200%; }
#slide4:checked ~ #slides .inner { margin-left:-300%; }
#slide5:checked ~ #slides .inner { margin-left:-400%; }
 
 
#overflow {
    width: 100%;
    overflow: hidden;
}
 
article img {
    width: 100%;
}
 
#slides .inner {
    width: 500%;
    line-height: 0;
}
 
#slides article {
    width: 20%;
    float: left;
}
 
/* Slider Styling */
 
/* Control Setup */
 
#controls {
    margin: -25% 0 0 0;
    width: 100%;
    height: 50px;
}
 
#controls label { 
    display: none;
    width: 50px;
    height: 50px;
    opacity: 0.3;
}
 
#active {
    margin: 23% 0 0;
    text-align: center;
}
 
#active label {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #bbb;
}
 
#active label:hover {
    background: #ccc;
    border-color: #777 !important;
}
 
#controls label:hover {
    opacity: 0.8;
}
 
#slide1:checked ~ #controls label:nth-child(2), 
#slide2:checked ~ #controls label:nth-child(3), 
#slide3:checked ~ #controls label:nth-child(4), 
#slide4:checked ~ #controls label:nth-child(5), 
#slide5:checked ~ #controls label:nth-child(1) {
    background: url("images/next.png") no-repeat;
    float: right;
    margin: 0 -70px 0 0;
    display: block;
}
 
 
#slide1:checked ~ #controls label:nth-child(5),
#slide2:checked ~ #controls label:nth-child(1),
#slide3:checked ~ #controls label:nth-child(2),
#slide4:checked ~ #controls label:nth-child(3),
#slide5:checked ~ #controls label:nth-child(4) {
    background: url("images/prev.png") no-repeat;
    float: left;
    margin: 0 0 0 -70px;
    display: block;
}
 
#slide1:checked ~ #active label:nth-child(1),
#slide2:checked ~ #active label:nth-child(2),
#slide3:checked ~ #active label:nth-child(3),
#slide4:checked ~ #active label:nth-child(4),
#slide5:checked ~ #active label:nth-child(5) {
    background: #333;
    border-color: #333 !important;
}
 
/* Info Box */
 
.info {
    line-height: 20px;
    margin: 0 0 -150%;
    position: absolute;
    font-style: italic;
    padding: 30px 30px;
    opacity: 0;
    color: #000;
    text-align: left;
}
 
.info h3 {
    color: #333;
    margin: 0 0 5px;
    font-weight: normal;
    font-size: 22px;
    font-style: normal;
}
 
/* Slider Styling */
 
#slides {
    margin: 45px 0 0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: 1px 1px 4px #666;
    padding: 1%;
    background: #fff;
    background: rgb(252,255,244); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(252,255,244,1) 0%, rgba(219,218,201,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,255,244,1)), color-stop(100%,rgba(219,218,201,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* IE10+ */
    background: linear-gradient(top,  rgba(252,255,244,1) 0%,rgba(219,218,201,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#fcfff4", endColorstr="#dbdac9",GradientType=0 ); /* IE6-9 */
}
 
 
/* Animation */
 
#slides .inner {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -moz-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -ms-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
     -o-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); 
        transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
 
    -webkit-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -moz-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
    -ms-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
     -o-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); 
        transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
}
 
#slider {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}
 
#controls label{
    -webkit-transform: translateZ(0);
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
}
 
#slide1:checked ~ #slides article:nth-child(1) .info,
#slide2:checked ~ #slides article:nth-child(2) .info,
#slide3:checked ~ #slides article:nth-child(3) .info,
#slide4:checked ~ #slides article:nth-child(4) .info,
#slide5:checked ~ #slides article:nth-child(5) .info {
    opacity: 1;
    -webkit-transition: all 1s ease-out 0.6s;
    -moz-transition: all 1s ease-out 0.6s;
    -o-transition: all 1s ease-out 0.6s;
    transition: all 1s ease-out 0.6s;
}
 
.info, #controls, #slides, #active, #active label, .info h3, .desktop, .tablet, .mobile {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}
 
/* Respond Options */
 
#desktop:checked ~ #slider {
    max-width: 960px;
}
 
#tablet:checked ~ #slider {
    max-width: 850px;
}
 
#mobile:checked ~ #slider {
    max-width: 450px;
}
 
#desktop:checked ~ #slider .desktop,
#tablet:checked ~ #slider .tablet,
#mobile:checked ~ #slider .mobile {
    color: #777;
    opacity: 1;
}
 
.desktop, .tablet, .mobile {
    display: inline-block;
    width: 60px;
    height: 60px;
    padding-top: 50px;
    opacity: 0.35;
    font-size: 12px;
}
 
.desktop:hover, .tablet:hover, .mobile:hover {
    opacity: 0.2;
}
 
.desktop {
    background: url("images/desktop.png") no-repeat;
}
 
.tablet {
    background: url("images/tablet.png") no-repeat;
}
 
.mobile {
    background: url("images/mobile.png") no-repeat;
}
 
/* Responsive Styling */
 
/* Tablet */
 
#tablet:checked ~ #slider #controls {
    margin: -25% 0 0 12%;
    width: 76%;
    height: 50px;
}
 
#tablet:checked ~ #slider #controls label {
    -moz-transform: scale(0.8);
    -webkit-transform: scale(0.8);
    -o-transform: scale(0.8);
    -ms-transform: scale(0.8);
    transform: scale(0.8);
}
 
#tablet:checked  ~ #slider #slides, #mobile:checked  ~ #slider #slides {
    padding: 1% 0;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
}
 
#tablet:checked ~ #slider #active {
    margin: 22% 0 0;
}
 
@media only screen and (max-width: 850px) and (min-width: 450px) {
 
    #slider #controls {
        margin: -25% 0 0 15%;
        width: 70%;
        height: 50px;
    }
 
    #slider #controls label {
        -moz-transform: scale(0.8);
        -webkit-transform: scale(0.8);
        -o-transform: scale(0.8);
        -ms-transform: scale(0.8);
        transform: scale(0.8);
    }
 
    #slider #slides {
        padding: 1% 0;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
    }
 
    #slider #active {
        margin: 22% 0 0;
    }
 
} 
/* Mobile */
 
#mobile:checked ~ #slider #controls {
    margin: -28% 0 0 24%;
    width: 50%;
    height: 50px;
}
 
#mobile:checked ~ #slider #active {
    margin: 23% 0 0;
}
 
#mobile:checked ~ #slider #slides .info {
    opacity: 0 !important;
}
 
#mobile:checked ~ #slider #controls label {
    -moz-transform: scale(0.6);
    -webkit-transform: scale(0.6);
    -o-transform: scale(0.6);
    -ms-transform: scale(0.6);
    transform: scale(0.6);
}
 
 
@media only screen and (max-width:450px) {
 
    #slider #controls {
        margin: -28% 0 0 24%;
        width: 50%;
        height: 50px;
    }
 
    #slider #active {
        margin: 23% 0 0;
    }
 
    #slider #slides {
        padding: 1% 0;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
    }
 
    #slider #slides .info {
        opacity: 0 !important;
    }
 
    #slider #controls label {
        -moz-transform: scale(0.6);
        -webkit-transform: scale(0.6);
        -o-transform: scale(0.6);
        -ms-transform: scale(0.6);
        transform: scale(0.6);
    }
    .maintext {
        width:1000px;
        height:500px;
        border-radius:10px;
        box-shadow:0 3px 5px rgba(0,0,0,0.4), 0 1px 0 #bccf9b inset, 0 -1px 0 rgba(0,0,0,0.2) inset;
    }
}
</style>
<meta charset="utf-8">
<title>remcomp</title>
</head>
 
    <body>
        <article>
            <header class="head">
                <div class="robot">
                </div>
                <div class="info_head">
                Ремонт компьютеров и ноутбуков по СПб<br>и Ленинградской области
                </div>
                <nav class="one">
                <ul>
                    <li id="bottom_left"><a href="">Ремонт компьютеров</a></li>
                    <li id="bottom"><a href="">Ремонт ноутбуков</a></li>
                    <li id="bottom"><a href="">Услуги и цены</a></li>
                    <li id="bottom"><a href="">Гарантия качества</a></li>
                    <li id="bottom"><a href="">Отзывы</a></li>
                    <li id="bottom_right"><a href="">Контакты</a></li>
                </ul>
            </nav>
           </header>
         </article>
         
<article id="slider">
        
 
        <!-- MaxWidth Options -->
        
        
        <!-- Slider Setup -->
    
        <input checked type="radio" name="slider" id="slide1" />
        <input type="radio" name="slider" id="slide2" />
        <input type="radio" name="slider" id="slide3" />
        <input type="radio" name="slider" id="slide4" />
        <input type="radio" name="slider" id="slide5" />
    
    
        <!-- The Slider -->
 
        
        <div id="slides">
        
            <div id="overflow">
            
                <div class="inner">
                
                    <article>
                        <div class="info"><h3>24 ЧАСА</h3> ТЕЛЕФОН  <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/CouldDragonByBjzaba.png" />
                    </article>
 
                    
                    <article>
                        <div class="info"><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/MountainFortByBjzaba.png" />
                    </article>
                    
                    <article>
                        <div class="info"><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
 
                        <img src="https://www.cyberforum.ru/images/MountainOutpostByBjzaba.png" />
                    </article>
                    
                    <article>
                        <div class="info"><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/CliffsByBjzaba.png" />
                    </article>
                    
                    <article>
 
                        <div class="info"><h3>24 ЧАСА</h3> ТЕЛЕФОН <a href="#">+7 (904) 611 - 01- 30</a></div>
                        <img src="https://www.cyberforum.ru/images/HillFortByBjzaba.png" />
                    </article>
                    
                </div> <!-- .inner -->
                
            </div> <!-- #overflow -->
        
        </div> <!-- #slides -->
 
    
    
        <!-- Controls and Active Slide Display -->
    
        <div id="controls">
 
            <label for="slide1"></label>
            <label for="slide2"></label>
            <label for="slide3"></label>
            <label for="slide4"></label>
            <label for="slide5"></label>
        
        </div> <!-- #controls -->
 
        
        <div id="active">
 
            <label for="slide1"></label>
            <label for="slide2"></label>
            <label for="slide3"></label>
            <label for="slide4"></label>
            <label for="slide5"></label>
            
        </div> <!-- #active -->
</article>
 
 
<div class="maintext">блаблаблаблабла!!!!</div>
</body>
</html>
1
0 / 0 / 0
Регистрация: 07.04.2016
Сообщений: 69
11.07.2016, 02:59  [ТС] 4
Спасибо огромное!) Я знал, что мир не без добрых людей)
0
11.07.2016, 02:59
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
11.07.2016, 02:59
Помогаю со студенческими работами здесь

Выпадающий список не видно под слайдером
друзья такая проблема...есть меню в виде выпадающего списка...под меню находится слайдер...так вот...

Задать полупрозрачный фон блоку не затрагивая текста в нем
У меня проблема, создал div задал ему background и в css прописал &quot;opacity: 0.5;&quot; дело в том что, в...

Как задать блоку условие, что бы он не влиял на общую ширину сайта
Как задать блоку условие, что бы он не влиял на общую ширину сайта и не являлся причиной появления...

Bootstrap, задать высоту в %
Осваиваю бутстрап, экспериментирую маленько, столкнулся с проблемой и не знаю как решить. Хочу 2-м...


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

Или воспользуйтесь поиском по форуму:
4
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru