Answer the question
In order to leave comments, you need to log in
Will the layout work on other devices?
Here's my problem...
Now I'm starting to practice more - I'm laying out layouts. I get the result as in the layout - everything is fine with this. But I think I'm doing something wrong. Here is an example of my code.
HTML:
<div class="start">
<div class="container">
<div class="text">
<div class="title">Привет!</div>
<ul class="hi">
<li>У тебя все получится!</li>
<li>Никогда не сдавайся!</li>
<li>Позвони нам!</li>
<li>Напиши нам!</li>
</ul>
</div>
<img class="people" src="img/Layer_3.png" alt="photo">
</div>
body {
font-family: Arial;
width: 1280px;
}
.start {
height: 325px;
background: #445162;
padding: 50px 50px 50px 50px;
}
.text {
color: white;
margin-right: 270px;
}
.title {
font-size: 60px;
margin: 0 0 40px 0;
}
.hi li {
background: url(img/check_icon.png) left no-repeat;
padding-left: 35px;
}
.hi {
font-size: 20px;
line-height: 36px;
}
.container {
max-width: 1186px;
height: 226px;
display: flex;
margin: 0 auto;
justify-content: space-between;
}
Answer the question
In order to leave comments, you need to log in
if everything is set in pixels, then yes, on devices with a resolution less than your width, there will be a horizontal scroll. An adaptive is needed if the client pays for it: D
PS It is
better to write codes on codepen.io or jsfiddle and insert them into habr qna like this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question