Jump to content
  • 0

Элементы наезжают друг на друга


nevalek
 Share

Question

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
    <link rel="stylesheet" href="style.css">
    
</head>
<body>
   <div class="container">
    
        <div class="header">
           <div class="product">
               <h1>Product Name</h1>
               <ul class="sps">
                   <li>Put on this page information about your product</li>
                   <li>A detailed description of your product</li>
                   <li>Tell us about the advantages and merits</li>
                   <li>Associate the page with the payment system
</li>
               </ul>
            </div>
            <div class="banner">
                
            </div>
        </div>
    </div>
</body>
</html>
body{
    margin: 0;
    font-family: Arial;
    font-style: normal;
}
.container{
    margin: 0;
    width: 90%;
    margin: 0 auto;
}
.header{
    min-height: 223px;
    background-color: #445162;
    color: white;
    padding: 50px 50px;
}
.product{
    width: 47%;
    display: inline-block;
}
.product > h1{
    font-size: 60px;
    margin: 0;
}
.product:after{
    content: "";
    display: block;
    clear: both;
    
}
.banner{
    background-color: white;
    width: 35%;
    min-height: 243px;;
    display: inline-block;
    float: right;
}
.sps > li{
    font-size: 20px;
    line-height: 36px;
    list-style-image: url(images/check_icon.png)
}

image.thumb.png.2ad12d06c4ccdb8d932300b4a4e55788.png

почему div banner наезжает на надпись и как это исправить? И скажите в общем, что я делаю не так, как по правильному это сверстать?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy