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

Появление лишних отступов в мобильной версии

12.11.2019, 12:33. Показов 1517. Ответов 1

Студворк — интернет-сервис помощи студентам
Привет, всем! Помогите, пожалуйста, мучаюсь уже не первый день, уже как только не искала в гугле, но все никак не могу найти ответа, создала сайт используя Bootstrap 4, проблема в том, что когда смотрю сайт с мобильного телефона получается огромный отступ, подскажите, пожалуйста, как можно это исправить:

сайт: https://oloiao.000webhostapp.c... utph-I7pPw
проблема тут: https://cdn1.savepice.ru/uploa... 1-full.png

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
<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="example.css">
    <title>Web Masters App</title>
 
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark ">
      <a class="navbar-brand" href="#"><img src="logo.png"  height="50" alt=""></a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav">
          <li class="nav-item active">
            <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#">Features</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#">About</a>
          </li>
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">More</a>
            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
              <a class="dropdown-item" href="#">Action</a>
              <a class="dropdown-item" href="#">Another action</a>
              <div class="dropdown-divider"></div>
              <a class="dropdown-item" href="#">Something else here</a>
            </div>
          </li>
        </ul>
      </div>
    </nav>
    <div id="carouselExampleIndicators" class="carousel slide " data-ride="carousel">
      <div class="carousel-inner">
        <div class="carousel-item active">
          <img src="carousel-image1.jpg" class="d-block w-100" alt="...">
          <div class="carousel-caption ">
            <button>Get Started</button>
              <h2>Do you want to master web development?</h2>
 
            </div>
        </div>
        <div class="carousel-item">
          <img src="carousel-image2.jpg" class="d-block w-100" alt="...">
        </div>
        <div class="carousel-item">
          <img src="carousel-image3.jpg" class="d-block w-100" alt="...">
        </div>
      </div>
      <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>
 
    <div class="container">
 
    <div class="card-deck">
  <div class="card" >
    <img src="html5.png"  class="card-img-top" alt="...">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
    </div>
    <div class="card-footer">
      <small class="text-muted">Last updated 3 mins ago</small>
    </div>
  </div>
 
  <div class="card" >
    <img src="css3.png"  class="card-img-top" alt="...">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
    </div>
    <div class="card-footer">
      <small class="text-muted">Last updated 3 mins ago</small>
    </div>
  </div>
  <div class="card">
    <img src="javascript.png" class="card-img-top" alt="...">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
    </div>
    <div class="card-footer">
      <small class="text-muted">Last updated 3 mins ago</small>
    </div>
  </div>
</div>
<div class="card-deck">
<div class="card">
<img src="jQuery.png" class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card-footer">
  <small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
<div class="card">
<img src="bootstrap.png" class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
</div>
<div class="card-footer">
  <small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
<div class="card">
<img src="php.png" class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
</div>
<div class="card-footer">
  <small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
 
 
 
 
 
  <div class="row">
    <div class="col-md-6">
      <h5 >Web Development</h5>
        <p >Web pages can be created and modified by using professional HTML editors.
 
    However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
 
    We believe using a simple text editor is a good way to learn HTML.</p>
 
    <p>Follow the steps below to create your first web page with Notepad or TextEdit. Follow the steps below to create your first web page with Notepad or TextEdit.</p>
 
    </div>
    <div class="col-md-6">
    <img src="web.jpg" class="img-fluid" alt="...">
    </div>
  </div>
  <div class="col-md-3" >
  <div class="card-body">
  <h5 class="card-title">HTML 5</h5>
   <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer...
   </p>
  </div>
  </div>
  <div class="col-md-3" >
  <img src="html5.png" class="card-img-top" alt="...">
  </div>
  <div class="col-md-3" >
  <div class="card-body">
  <h5 class="card-title">CSS 3</h5>
   <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer...
   </p>
  </div>
  </div>
  <div class="col-md-3" >
  <img src="css3.png" class="card-img-top" alt="...">
 
  </div>
  <div class="col-md-3" >
  <div class="card-body">
  <h5 class="card-title">JavaScript</h5>
   <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer...
   </p>
  </div>
  </div>
  <div class="col-md-3" >
  <img src="javascript.png" class="card-img-top" alt="...">
  </div>
  <div class="col-md-3" >
  <div class="card-body">
  <h5 class="card-title">jQuery</h5>
   <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer...
   </p>
  </div>
  </div>
  <div class="col-md-3" >
  <img src="jQuery.png" class="card-img-top" alt="...">
 
  </div>
  <div class="col-md-3" >
  <div class="card-body">
  <h5 class="card-title">Bootstrap</h5>
   <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer...
   </p>
  </div>
  </div>
  <div class="col-md-3" >
  <img src="bootstrap.png" class="card-img-top" alt="...">
  </div>
  <div class="col-md-3" >
  <div class="card-body">
  <h5 class="card-title">PHP</h5>
   <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer...
   </p>
  </div>
  </div>
  <div class="col-md-3" >
  <img src="php.png" class="card-img-top" alt="..." >
 
  </div>
  </div>
</div>
 
 
 
 
    <!-- Footer -->
<footer class="text-center">
    <div class="container">
      <div class="row">
        <div class="col-sm">
          <h3> Contact us </h3>
            <br>
            Our contacts
        </div>
        <div class="col-sm">
        <h3>Social Media </h3>
        <a href=""><i class="fab fa-facebook-square"></i></a>
        <a href=""><i class="fab fa-youtube"></i></a>
        <a href=""><i class="fab fa-google"></i></a>
        <a href=""><i class="fab fa-instagram"></i></a>
        <a href=""><i class="fab fa-twitter"></i></a>
        </div>
        <div class="col-sm">
<a href=""><img src="logo.png"  height="100" alt=""></a>
        </div>
      </div>
    </div>
 
</footer>
 
    <!-- ./Footer -->
 
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/esm/popper-utils.js"></script>
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
    <script src="https://kit.fontawesome.com/1f631eb1f4.js" crossorigin="anonymous"></script>
 
  </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
.navbar{
  background-color: #4400ff;
  font-size: 20px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
 height: 160px;
 width: 160px;
 outline: black;
 background-size: 100%, 100%;
 background-image: none;
}
.carousel-control-next-icon:after
{
  content: '>';
  font-size: 55px;
  color: #4400ff;
}
 
.carousel-control-prev-icon:after {
  content: '<';
  font-size: 55px;
  color: #4400ff;
}
 
.carousel-inner{
  height: 80vh;
}
 
.carousel-caption{
  top: 50%;
  transform: translateY(-50%);
  background: rgba(76, 0, 255, 0.5);
  bottom: initial;
}
 
.card{
  margin: 50px;
}
.row{
  margin: 50px auto;
}
 
footer{
  margin-top: 50px;
  background-color: #4400ff;
  color: white;
  padding: 3%;
}
 
.fab{
  color:white;
  font-size: 30px;
  padding: 10px;
}
.fab:hover {
  color:#d8d8d8;
}
Добавлено через 1 час 33 минуты
спасибо за внимание, нашла в чем была проблема)
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
12.11.2019, 12:33
Ответы с готовыми решениями:

Как для web-версии и мобильной версии поставить разные картинки
Всем добрый вечер! Кто знает, подскажите: мне необходимо для вебверсии и мобильной версии поставить разные картинки.

Как разместить картинку и два <span> слева от нее без лишних отступов
Такая проблема , мне нужно расположить картинку слева а два спана справа напротив нее( убрать лишние отступы у спанов и расположить их один...

Появление лишних символов
Здравствуйте уважаемые, подскажите как решить следующую проблему: появились непонятные символы, которых при написании кода не было =( ...

1
1 / 1 / 0
Регистрация: 12.11.2019
Сообщений: 13
12.11.2019, 20:03
У самого была такая же проблема,попробуй в свой css код вставить это :
html,body {
width: 100%;
overflow-x: hidden;
}
1
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
12.11.2019, 20:03
Помогаю со студенческими работами здесь

Появление лишних строк в Listbox-e
Здравствуйте. В БД на аксесс сделал форму со списком (Listbox), в который вывожу данные из таблицы &quot;Объекты&quot;(ШифрОбъекта - текст,...

Binarywriter, запись в файл: появление лишних символов
Записываю в файл таким образом: writer.Write(&quot;Строка&quot;); Кодировка Encoding.GetEncoding(866) (Кириллица досовская) в файл записывает...

Слайдер на мобильной версии
Привет, подскажите как можно нормально подправить слайдер на мобильной версии сайта что бы он был адаптивный, уже третий день голову ломаю

2 меню в мобильной версии
Добрый день, Друзья! Подскажите пожалуйста, как реализовать в мобильной версии поддержку верхнего и бокового меню? Необходимо, чтобы...

Масштабирование на мобильной версии
Добрый день, у меня при запуске сайта на телефоне, весь сайт подстраивается под ширину телефона, но если двинуть вправо, то там есть...


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

Или воспользуйтесь поиском по форуму:
2
Ответ Создать тему
Новые блоги и статьи
Воспроизведение звукового файла с помощью SDL3_mixer при касании экрана Android
8Observer8 26.01.2026
Содержание блога SDL3_mixer - это библиотека я для воспроизведения аудио. В отличие от инструкции по добавлению текста код по проигрыванию звука уже содержится в шаблоне примера. Нужно только. . .
Установка Android SDK, NDK, JDK, CMake и т.д.
8Observer8 25.01.2026
Содержание блога Перейдите по ссылке: https:/ / developer. android. com/ studio и в самом низу страницы кликните по архиву "commandlinetools-win-xxxxxx_latest. zip" Извлеките архив и вы увидите. . .
Вывод текста со шрифтом TTF на Android с помощью библиотеки SDL3_ttf
8Observer8 25.01.2026
Содержание блога Если у вас не установлены Android SDK, NDK, JDK, и т. д. то сделайте это по следующей инструкции: Установка Android SDK, NDK, JDK, CMake и т. д. Сборка примера Скачайте. . .
Использование SDL3-callbacks вместо функции main() на Android, Desktop и WebAssembly
8Observer8 24.01.2026
Содержание блога Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
моя боль
iceja 24.01.2026
Выложила интерполяцию кубическими сплайнами www. iceja. net REST сервисы временно не работают, только через Web. Написала за 56 рабочих часов этот сайт с нуля. При помощи perplexity. ai PRO , при. . .
Модель сукцессии микоризы
anaschu 24.01.2026
Решили писать научную статью с неким РОманом
http://iceja.net/ математические сервисы
iceja 20.01.2026
Обновила свой сайт http:/ / iceja. net/ , приделала Fast Fourier Transform экстраполяцию сигналов. Однако предсказывает далеко не каждый сигнал (см ограничения http:/ / iceja. net/ fourier/ docs ). Также. . .
http://iceja.net/ сервер решения полиномов
iceja 18.01.2026
Выкатила http:/ / iceja. net/ сервер решения полиномов (находит действительные корни полиномов методом Штурма). На сайте документация по API, но скажу прямо VPS слабенький и 200 000 полиномов. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru