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

Адаптивная верстка

02.04.2020, 17:58. Показов 504. Ответов 1
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Здравствуйте! Сверстал сайт по макету, но моя самоуверенная попытка попытаться его адаптировать закончилась, так и не начавшись.
Не могу понять почему на узких экранах документ занимает не всю ширину. Будто бы он считает, что ширина устройства уже, чем есть на самом деле(но это не точно). Фиксированную ширину в глобальных блоках не задавал, везде стоит 100%.
Прилагаю скрин, где показана проблема(пустая белая полоса справа, которая идет вдоль всего макета), код хтмл и цсс. Всех заранее благодарю за любую оказанную помощь.


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
<!doctype HTML>
 
<html>
    <head>
    <meta charset="utf-8">
     <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Raleway:wght@400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="style.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ActiveBox</title>
 
    </head>
    <body>
<!------------------sprite------------------------------
-------------------------->
 
 
 
 
<!------------------header------------------------------
-------------------------->
        <header class ="header">
            <div class = "container">
                <div class ="header__inner">
                    <div class ="header__logo">
                    <img src="img/ActiveBox-logo.png">
                    </div>
                    <div class ="menu">
                        <nav class ="nav">
                            <a class ="nav__link" href="#">Features</a>
                            <a class ="nav__link" href="#">Works</a>
                            <a class ="nav__link" href="#">Our Team</a>
                            <a class ="nav__link" href="#">Testimonials</a>
                            <a class ="nav__link" href="#">Download</a>
                        </nav>
                    </div>
                </div> <!--header__inner-->
            </div> <!--contain-->
        </header>
 
<!--------------------intro-------------------
   --------------------------------->
    <div class ="intro">
       <div class="container">
           <div class="intro__inner">
                <h1 class ="intro__title">Your Favorite One Page Multi Purpose Template</h1>
                <p class="intro__subtitle">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna vel scelerisque nisl consectetur et.</p>
                <button class="btn btn--red" type ="button" href="#">Find Out More</button>
 
           </div>
       </div> <!--container-->
    </div> <!--intro-->
 
<!--------------------features-------------------
   --------------------------------->
    <div class="features">
        <div class="container">
            <div class="features__inner">
                <div class="features__item">
                    <img src="img/features/f1.png" alt="" class="features__img">
                    <h3 class="features__title">Easily Customised</h3>
                    <p class="features__text">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam quis risus eget urna mollis ornare vel eu leo. Donec ullamcorper nulla </p>
                </div>
                <div class="features__item">
                    <img src="img/features/f2.png" alt="" class="features__img">
                    <h3 class="features__title">Responsive REady</h3>
                    <p class="features__text">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam quis risus eget urna mollis ornare vel eu leo. Donec ullamcorper nulla </p>
                </div>
                   <div class="features__item">
                    <img src="img/features/f3.png" alt="" class="features__img">
                    <h3 class="features__title">Modern Design</h3>
                    <p class="features__text">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam quis risus eget urna mollis ornare vel eu leo. Donec ullamcorper nulla </p>
                </div>
                <div class="features__item">
                    <img src="img/features/f4.png" alt="" class="features__img">
                    <h3 class="features__title">Clean Code</h3>
                    <p class="features__text">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam quis risus eget urna mollis ornare vel eu leo. Donec ullamcorper nulla </p>
                </div>
                <div class="features__item">
                    <img src="img/features/f5.png" alt="" class="features__img">
                    <h3 class="features__title">Ready to Ship</h3>
                    <p class="features__text">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam quis risus eget urna mollis ornare vel eu leo. Donec ullamcorper nulla </p>
                </div>
                <div class="features__item">
                    <img src="img/features/f6.png" alt="" class="features__img">
                    <h3 class="features__title">Download for Free</h3>
                    <p class="features__text">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam quis risus eget urna mollis ornare vel eu leo. Donec ullamcorper nulla </p>
                </div>
            </div> <!--features__inner-->
        </div> <!--container-->
    </div> <!--features-->
 
 
 
<!---works------------------------------
-------------------------->
<div class="works">
    <div class="works__item">
        <img class = "works__photo" src="img/works/work1.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div>
    <div class="works__item">
        <img class = "works__photo" src="img/works/work2.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div>
    <div class="works__item">
        <img class = "works__photo" src="img/works/work3.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div>
    <div class="works__item">
        <img class = "works__photo" src="img/works/work4.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div>
    <div class="works__item">
        <img class = "works__photo" src="img/works/work5.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div>
    <div class="works__item">
        <img class = "works__photo" src="img/works/work6.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div>
    <div class="works__item">
        <img class = "works__photo" src="img/works/work7.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div>
    <div class="works__item">
        <img class = "works__photo" src="img/works/work8.jpg" alt="">
        <div class="works__content">
            <div class="works__title">Project Name</div>
            <div class="works__text">User Interface Design</div>
        </div>
    </div> <!--works__item-->
</div>  <!--works-->
 
<!------------------team------------------------------
-------------------------->
 
<div class="team">
    <div class="container">
        <div class="team__inner">
            <div class="team__item">
                <img src="img/team/team1.jpg" alt="" class="team__img">
                <h5 class="name">Ruth Woods</h5>
                <p class="prof">Founder, CEO</p>
                <p class="description">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. </p>
                <p class="description">Maecenas sed diam eget risus varius blandit sit amet non magna. Nullam quis risus eget urna mollis ornare vel eu leo.</p>
                <div class="social">
                    <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#facebook"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#twitter"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#linkedin"></use>
                        </svg>
                    </a>
                </div>
            </div>
            <div class="team__item">
                <img src="img/team/team2.jpg" alt="" class="team__img">
                <h5 class="name">Timothy Reed</h5>
                <p class="prof">Co-Founder, Developer</p>
                <p class="description">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. </p>
                <p class="description">Maecenas sed diam eget risus varius blandit sit amet non magna. Nullam quis risus eget urna mollis ornare vel eu leo.</p>
                <div class="social">
                    <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#facebook"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#twitter"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#linkedin"></use>
                        </svg>
                    </a>
                </div>
            </div>
            <div class="team__item">
                <img src="img/team/team3.jpg" alt="" class="team__img">
                <h5 class="name">Co-Founder, Developer</h5>
                <p class="prof">UI Designer</p>
                <p class="description">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. </p>
                <p class="description">Maecenas sed diam eget risus varius blandit sit amet non magna. Nullam quis risus eget urna mollis ornare vel eu leo.</p>
                <div class="social">
                    <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#facebook"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#twitter"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#linkedin"></use>
                        </svg>
                    </a>
                </div>
            </div>
            <div class="team__item">
                <img src="img/team/team4.jpg" alt="" class="team__img">
                <h5 class="name">Beverly Little</h5>
                <p class="prof">Data Scientist</p>
                <p class="description">Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. </p>
                <p class="description">Maecenas sed diam eget risus varius blandit sit amet non magna. Nullam quis risus eget urna mollis ornare vel eu leo.</p>
                <div class="social">
                    <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#facebook"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#twitter"></use>
                        </svg>
                    </a>
                       <a class="social__item" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#linkedin"></use>
                        </svg>
                    </a>
                </div>
            </div>
        </div> <!--team_inner-->
    </div> <!--container-->
</div> <!--team-->
 
<!------------------reviews------------------------------
-------------------------->
<div class="reviews">
    <div class="reviews__item">
        <div class="reviews__img">
        <img src="img/reviews/reviews.jpg" alt="" class="reviews__photo">
        </div>
        <div class="reviews__content">
            <p class="reviews__text">“Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec sed odio dui. Aenean eu leo quam...”</p>
            <p class="reviews__autor">Susan Sims, Interaction Designer at XYZ</p>
        </div>
    </div><!--reviews__item-->
</div><!--reviews-->
<!------------------download------------------------------
-------------------------->
 
<div class="download">
    <div class="container">
       <div class="download__inner">
            <h4 class="download__title">Are You Ready to Start? Download Now For Free!</h4>
            <p class="download__text">Fusce dapibus, tellus ac cursus commodo</p>
            <button class="btn btn--bottom" type="button">Download Here</button>
        </div>  <!--download__inner-->
    </div> <!--container-->
</div> <!--download-->
 
<footer class = "footer">
  <div class="container">
      <div class="footer__inner">
          <div class="footer__item">
              <h6 class="footer__title"> location</h6>
              <adress class="footer__text">3481 Melrose Place</adress>
              <adress class="footer__text">Beverly Hills, CA 90210</adress>
          </div> <!--footer__item-->
          <div class="footer__item">
              <div class="footer__title">
                  Share with Love
              </div>
              <div class="social">
                    <a class="social__item social__item-bottom" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#facebook"></use>
                        </svg>
                    </a>
                       <a class="social__item social__item-bottom" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#twitter"></use>
                        </svg>
                    </a>
                       <a class="social__item social__item-bottom" href="#">
                        <svg class="social__icon">
                            <use xlink:href="#linkedin"></use>
                        </svg>
                    </a>
                </div>
          </div> <!--footer__item-->
          <div class="footer__item">
              <h5 class="footer__title">
                  About ActiveBox
              </h5>
                <p class="footer__text">Cras justo odio, dapibus ac facilisis in, egestas eget quam.</p>
                <p class="footer__text">Donec ullamcorper nulla non metus auctor fringilla.</p>
          </div>
      </div><!--footer__inner-->
  </div>  <!--container-->
</footer>
 
<!------------------copyright------------------------------
-------------------------->
<div class="copyright">
    <div class="container">
       <div class="copyright__inner">
            <p class = "copyright__text">Copyright © 2015 ActiveBox. All Rights Reserved </p>
             <p class = "copyright__text1">Made by Kamal Chaneman </p>
        </div>
    </div>
</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
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
html{
    width: 100%
}
body{
    font-family: 'Raleway', sans-serif;
    color: #6c7279;
    font-size: 14px;
    margin: 0;
    background-color: #fff;
    width: 100%
}
 
*, before, after{
    box-sizing: border-box;
}
 
h1, h2, h3, h4, h5, h6{
    margin: 0;
}
p{
    margin: 0 0 10px 0;
}
 
 
/*=====container
==================*/
 
.container{
    width:100%;
    max-width:1200px;
    margin: 0 auto;
    padding: 0 15px;
}
 
/*=====header
==================*/
.header{
    width:100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 100px;
 
}
 
.header__inner{
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0px 35px;
    border-bottom: 1px solid #505369;
}
 
.menu{
    display: flex;
    text-transform: uppercase;
}
.nav{
    font-size: 13px;
    font-weight: 400;
}
.nav__link{
    text-decoration: none;
    color: #ffffff;
    margin-left: 60px;
    font-size: 13px;
    font-weight: 400;
    opacity: .75;
    transition: opacity .1s linear;
}
 
.nav__link:first-child{
    margin-left: 0px;
}
 
.nav__link:hover{
    opacity: 1;
}
 
 
 
 
 
 
/*=====intro
==================*/
 
.intro{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    height: 750px;
    background: #30344f url(img/intro-bg.jpg) center no-repeat;
    background-size: cover;
}
 
.intro__inner{
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 970px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
 
.intro__title{
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
    font-size: 65px;
    line-height: 1.1;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}
 
.intro__subtitle{
    margin-bottom: 80px;
    font-size: 22px;
    color: #fff;
    line-height: 1.5;
}
 
 
 
 
/*=====button
==================*/
 
 
.btn{
    font-family: inherit;
    background-color: #e84545;
    padding: 14px 35px 14px 45px;
    cursor: pointer;
    text-transform: uppercase;
    color:#fff;
    font-size: 13px;
    font-weight: 400;
    border: none;
    border-radius: 3px;
    transition: background .2s linear;
}
 
.btn:hover{
   background-color: #b92a2a;
}
button:focus {
    outline: none;
}
.btn--bottom{
    padding: 14px 75px 14px 85px;
}
/*=====features
==================*/
 
.features{
    margin: 95px 0;
}
 
 
.features__inner{
    display: flex;
    flex-wrap: wrap;
}
 
.features__item{
    width: 33.333%;
    padding: 0 40px;
    margin: 25px 0;
/*
    display: flex;
    flex-direction: column;*/
    text-align: center;
 
}
 
.features__img{
    margin-bottom: 20px;
}
 
.features__title{
    margin-bottom: 15px;
    font-size: 14px;
    font-weight:700;
    color:#2d3033;
    text-transform: uppercase;
}
 
.features__text{
    font-size: 14px;
    line-height: 1.5;
    color: #6c7279;
}
 
 
/*=====works
==================*/
.works{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 80px;
}
.works__item{
    height: 350px;
    width: 25%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
}
 
 
.works__photo{
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate3d(-50%, -50%, 0);
 
}
 
.works__content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: rgba(232, 69, 69, .9);
    opacity: 0;
    transition: opacity .2s linear;
}
 
.works__title{
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    text-transform: uppercase;
}
 
.works__text{
    color: #fff;
    font-size: 14px;
}
 
.works__content:hover{
    opacity: 1;
}
 
 
/*=====team
==================*/
.team{
    margin-bottom: 70px;
}
.team__inner{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 -15px;
}
 
.team__item{
    width: 25%;
    margin: 30px 0;
    padding: 0 15px;
}
 
.team__img{
   margin-bottom: 20px;
    border-radius: 5px;
}
 
.name{
    font-size: 22px;
    color: #2d3033;
    margin-bottom: 10px;
 
}
 
.prof{
    color: #e84545;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
 
.description{
    margin: 0;
    font-size: 14px;
    color: #6c7279;
    margin-bottom: 20px;
}
 
 
/*=====social
==================*/
 
.social{
    display: flex;
}
 
.social__item{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #e8ecee;
    margin-right: 7px;
    transition: background .1s linear;
}
 
.social__item:hover{
    background-color: #e8ecee;
}
 
.social__item:hover .social__icon{
    fill: #000;
}
.social__icon{
    fill: #c6cacc;
    height: 18px;
    transition: fill .1s linear;
}
 
.social__item-bottom{
    background: none;
}
 
/*=====reviews
==================*/
 
.reviews{
}
 
.reviews__item{
    display: flex;
    flex-wrap: wrap;
    background-color: #53354a;
}
.reviews__img{
    height: 500px;
    width:50%;
    position: relative;
    overflow:hidden;
}
.reviews__photo{
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
    transform: translateY(-50%);
}
 
.reviews__content{
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 600px;
    width: 50%;
    padding-left: 80px;
}
 
.reviews__text{
    font-family: "Cardo", sans-serif;
    font-size: 36px;
    color: #fff;
    font-style:italic;
    margin-bottom: 40px;
}
 
.reviews__autor{
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
 
/*=====download
==================*/
 
.download{
    margin: 90px 0;
}
 
.download__inner{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.download__title{
    font-size: 28px;
    font-weight: 300;
    color: #2d3033;
    margin-bottom: 15px;
}
.download__text{
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 13px;
    color: #2d3033;
    text-transform: uppercase;
}
 
 
/*=====footer
==================*/
 
.footer{
    background-color: #3a3e64;
    padding: 50px 0;
}
 
.footer__inner{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
 
.footer__item{
    display: flex;
    flex-direction: column;
/*    justify-content: center;*/
    align-items: center;
    text-align: center;
    width: 33.33333%;
    padding: 0 8px;
}
 
 
.footer__title{
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    margin: 15px 0;
}
 
.footer__text{
    font-style: normal;
    color: #fff;
    opacity: .5;
    font-size: 14px;
    margin-bottom: 8px;
}
 
 
/*=====copyright
==================*/
.copyright{
    padding: 20px 0;
    background: #313454;
}
 
.copyright__inner{
    display: flex;
    align-items: center;
    flex-direction: column;
}
 
.copyright__text{
    color: #808080;
    margin-bottom: 7px;
}
 
.copyright__text1{
    color: #fff;
}
 
 
 
/*=====media
==================*/
 
 
@media (max-width:1200px){
    .intro__title{
        font-size: 40px;
    }
 
 
 
}
Миниатюры
Адаптивная верстка  
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
02.04.2020, 17:58
Ответы с готовыми решениями:

Адаптивная верстка
Имеются два макета, десктопный вид сайта и мобильный вид. Но не пойму как реализовать адаптивность верхней менюшки, хедера в общем. Не...

адаптивная верстка
Доброе время суток, изучаю адаптивная верстка, сверстал свою первую страницу, посмотрите, пожалуйста, что получилось, выскажите замечания. ...

Адаптивная верстка
У меня есть psd в котором контент фиксирован под 960px(ноутбуки). Вопрос такой надо ли делать адаптивность под 1140px(персональный...

1
469 / 334 / 144
Регистрация: 16.02.2018
Сообщений: 930
02.04.2020, 18:28
Цитата Сообщение от pavellancov Посмотреть сообщение
(пустая белая полоса справа
это пространство на которое "выступает" ваш контент. А так происходит, потому что он не влазит в текущую ширину. У вас образовался горизонтальный скролл. Что бы понять какой блок его провоцирует, удалите в браузере блоки по очереди и поймете где беда.
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
02.04.2020, 18:28
Помогаю со студенческими работами здесь

Адаптивная верстка
Здравствуйте. Такой вот вопрос, нужно сделать так чтобы на дисплеях разных устройств блоки выровнялись по горизонтали и по вертикали в...

Адаптивная верстка
Доброго времени суток всем! Столкнулся с такой проблемой, создал некий калькулятор на своем сайте, все нормально работает на компьютере, но...

Адаптивная верстка
Здравствуйте форумчане, проблема вот в чем. Сверстан лендинг по Bootstrap 4, плюс адаптивные версии. На компьютере, планшете и телефоне...

Адаптивная верстка
Привет всем, мой сайт доска объявлений, движок старенький самописный дизайн весь верстный в основном на &lt;table&gt;. Я так понимаю что бы...

Адаптивная верстка
Возможны ли проблемы адаптивной верстки с тегом &lt;map&gt; с привязанными координатами ?? А то я уже 3ий час бьюсь, никак не получается сделать...


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

Или воспользуйтесь поиском по форуму:
2
Ответ Создать тему
Новые блоги и статьи
SDL3 для Web (WebAssembly): Реализация движения на Box2D v3 - трение и коллизии с повёрнутыми стенами
8Observer8 20.02.2026
Содержание блога Box2D позволяет легко создать главного героя, который не проходит сквозь стены и перемещается с заданным трением о препятствия, которые можно располагать под углом, как верхнее. . .
Конвертировать закладки radiotray-ng в m3u-плейлист
damix 19.02.2026
Это можно сделать скриптом для PowerShell. Использование . \СonvertRadiotrayToM3U. ps1 <path_to_bookmarks. json> Рядом с файлом bookmarks. json появится файл bookmarks. m3u с результатом. # Check if. . .
Семь CDC на одном интерфейсе: 5 U[S]ARTов, 1 CAN и 1 SSI
Eddy_Em 18.02.2026
Постепенно допиливаю свою "многоинтерфейсную плату". Выглядит вот так: https:/ / www. cyberforum. ru/ blog_attachment. php?attachmentid=11617&stc=1&d=1771445347 Основана на STM32F303RBT6. На борту пять. . .
Камера Toupcam IUA500KMA
Eddy_Em 12.02.2026
Т. к. у всяких "хикроботов" слишком уж мелкий пиксель, для подсмотра в ESPriF они вообще плохо годятся: уже 14 величину можно рассмотреть еле-еле лишь на экспозициях под 3 секунды (а то и больше),. . .
И ясному Солнцу
zbw 12.02.2026
И ясному Солнцу, и светлой Луне. В мире покоя нет и люди не могут жить в тишине. А жить им немного лет.
«Знание-Сила»
zbw 12.02.2026
«Знание-Сила» «Время-Деньги» «Деньги -Пуля»
SDL3 для Web (WebAssembly): Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 12.02.2026
Содержание блога Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами и вызывать обработчики событий столкновения. . . .
SDL3 для Web (WebAssembly): Загрузка PNG с прозрачным фоном с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 11.02.2026
Содержание блога Библиотека SDL3 содержит встроенные инструменты для базовой работы с изображениями - без использования библиотеки SDL3_image. Пошагово создадим проект для загрузки изображения. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru