I
I
Ihorets2021-04-20 12:16:26
HTML
Ihorets, 2021-04-20 12:16:26

How to create a large banner in the entire width of the site?

Hello. I just started learning HTML and ran into a problem, I wrote the code for the future banner in the notepad and when viewing the finished file through the browser, everything is ok.
607e9b0aea78f798887323.png
But when I try to add it to the site, I get the following:
607e9b3a2f0d3950347022.png
Please help me figure out what the problem is. Here is the code itself:

<div class="baner" style="width:100%;">
<div class="banerleft"  style="width:50%;float: right;">
<a href="sample.html"><img src="/img/baner1.jpg" width="100%" alt=""></a>

  </div>

<div class="baneright" style="width:50%;background: #000;float: left;">
<a href="sample.html"><img src="/img/baner.jpg" width="100%" alt=""></a>
<img style="opacity: 0.7;">
<a href="#" style="position: absolute;
    top: 50%;
    z-index: 10;
    left: 17%;
    text-align: center;
    color: #fff;
    font-size: 46px;
    font-family: arial;
      text-decoration: none;
    border: 3px solid #fff;
  padding: 14px;">SAUCONY<br>@JAZZ 4000</a>
  </div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question