В разделе class="container" в html я создал множество разделов, таких как первый, второй, третий и четвертый. Я добавил текст, список и еще немного текста в первый раздел. Но кажется, что все находится в одной линии, а не находится друг под другом. Что мне сделать, чтобы ,
и
отображались друг под другом?
Пожалуйста, проверьте рисунок ниже, тексты расположены в одну строку... Я хочу, чтобы они находились друг под другом.
CSS (проверьте после строки 64, она должна начинаться с контейнера{})
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
.banner{
background-color: deepskyblue;
}
.navbar{
width: 85%;
margin: auto;
padding: 35px 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo{
width: 475px;
cursor: pointer;
}
.navbar ul li{
list-style: none;
display: inline-block;
margin: 0 20px;
position: relative;
}
.navbar ul li a{
text-decoration: none;
color: #fff;
text-transform: uppercase;
}
.navbar ul li::after{
content: '';
height: 3px;
width: 0;
background: #e5b3f1;
position: absolute;
left: 0;
bottom: -10;
transition: 0.5s;
}
.navbar ul li:hover:after{
width: 100%;
}
.content{
width: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
text-align: center;
color: #fff;
}
.content h1{
font-size: 60px;
margin-top: -100px;
}
.content p{
margin: 20px auto;
font-weight: 100;
line-height: 25px;
font-size: 25px;
}
.container{
scroll-snap-type: y mandatory;
overflow-y: scroll;
height: 100vh;
}
В разделе class="container" в html я создал множество разделов, таких как первый, второй, третий и четвертый. Я добавил текст, список и еще немного текста в первый раздел. Но кажется, что все находится в одной линии, а не находится друг под другом. Что мне сделать, чтобы , [list] и отображались друг под другом? Пожалуйста, проверьте рисунок ниже, тексты расположены в одну строку... Я хочу, чтобы они находились друг под другом. CSS (проверьте после строки 64, она должна начинаться с контейнера{}) *{ margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; } .banner{ background-color: deepskyblue; } .navbar{ width: 85%; margin: auto; padding: 35px 0; display: flex; align-items: center; justify-content: space-between; } .logo{ width: 475px; cursor: pointer; } .navbar ul li{ list-style: none; display: inline-block; margin: 0 20px; position: relative; } .navbar ul li a{ text-decoration: none; color: #fff; text-transform: uppercase; } .navbar ul li::after{ content: ''; height: 3px; width: 0; background: #e5b3f1; position: absolute; left: 0; bottom: -10; transition: 0.5s; } .navbar ul li:hover:after{ width: 100%; } .content{ width: 100%; position: absolute; top: 50%; transform: translateY(-50%); text-align: center; color: #fff; } .content h1{ font-size: 60px; margin-top: -100px; } .content p{ margin: 20px auto; font-weight: 100; line-height: 25px; font-size: 25px; }
.container{ scroll-snap-type: y mandatory; overflow-y: scroll; height: 100vh; }
Before Digital Revolution Mechanical devices were used in the early ages because there weren't many digital inventions. Back then, people used to:
[*]Tell the time using mechanical clocks(which could be delayed. [*]Use typewriters to write stuff which used alot of ink. [*]Use low quality phones that cannot be used from really far away to communicate. [*]ETC... [/list] This age was between 1950 and 1970.
Я хотел знать, возможно ли использовать ObjectMapper из Jackson , чтобы читать события один за один. Я не хочу загружать полные события JSON в мою память, а не то, что я хочу обрабатывать события один за другим. Следовательно, я использую библиотеку...