The problem is that if you add elements of ITEM, then some of them will not be visible. They will be hidden behind the screen.

Code:

@import url('https://fonts.googleapis.com/css?family=Roboto'); * { padding: 0; margin: 0; } body { background: #fff; } h1, h2, h3, h4, h5, h6, h3, p, a { font-family: 'Roboto', sans-serif; text-decoration: none; } .downloads { margin: 0 auto; padding: 25px; max-width: 45.2vw; height: 100%; } .downloads:after { display: table; content: ''; clear: both; } .downloads>h2 { position: relative; top: -2%; left: 50%; transform: translate(-50%, 2%); width: 10vw; line-height: 50px; text-align: center; border-radius: 30px; background: linear-gradient(to right, rgb(247, 52, 124) 0%, rgb(255, 89, 74) 100%); color: #fff; box-shadow: 1px 10px 20px -8px #2d2d2d; margin-top: 25px; margin-bottom: 10px; } /*----------------------------------------- Button -----------------------------------------*/ .install>a { display: block; position: relative; text-decoration: none; text-align: center; font-size: 18px; font-weight: bold; color: black; background: linear-gradient(to right, rgb(247, 52, 124) 0%, rgb(255, 89, 74) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; border-radius: 30px; padding: 5px; width: 70%; transition: .25s; margin: auto; margin-top: 30px; } .install>a:after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: white; border-radius: 30px; z-index: -1; transition: .25s; } .install>a:before { content: ""; position: absolute; top: -4px; left: -4px; width: calc(100% + 8px); height: calc(100% + 8px); background: linear-gradient(to right, rgb(247, 52, 124) 0%, rgb(255, 89, 74) 100%); border-radius: 30px; z-index: -1; transition: .25s; } .install>a:hover:after { opacity: 0; transition: .25s; } .install>a:hover { background: #fff; -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: .25s; } /*----------------------------------------- Button -----------------------------------------*/ /*------------------------------------------ Item ------------------------------------------*/ .item { position: relative; float: left; width: 20vw; text-align: center; padding-top: 20px; padding-bottom: 20px; margin: 25px; transition: .15s; } .item:hover:before { box-shadow: 1px 10px 20px -8px #2d2d2d; transition: .25s; } .item:after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: white; border-radius: 30px; z-index: -2; transition: .25s; } .item:before { content: ""; position: absolute; top: -4px; left: -4px; width: calc(100% + 8px); height: calc(100% + 8px); background: linear-gradient(to right, rgb(247, 52, 124) 0%, rgb(255, 89, 74) 100%); border-radius: 30px; z-index: -2; transition: .25s; } .item:nth-child(2n):before { background: linear-gradient(to right, rgb(255, 89, 74) 0%, rgb(247, 52, 124) 100%); } .item:nth-child(2n)>.txt { background: linear-gradient(to right, rgb(255, 89, 74) 0%, rgb(247, 52, 124) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /*------------------------------------------ Item ------------------------------------------*/ /*------------------------------------------ Img ------------------------------------------*/ .img>img { max-width: 50%; border-radius: 30px; } /*------------------------------------------ Img ------------------------------------------*/ /*------------------------------------------ TxT ------------------------------------------*/ .txt { font-size: 20px; color: black; background: linear-gradient(to right, rgb(247, 52, 124) 0%, rgb(255, 89, 74) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /*------------------------------------------ TxT ------------------------------------------*/ /*----------------------------------------- Wrap -----------------------------------------*/ .warp { width: 50vw; } /*----------------------------------------- Wrap -----------------------------------------*/ /*---------------------------------------- Footer ----------------------------------------*/ footer { text-align: center; background: linear-gradient(to right, rgb(247, 52, 124) 0%, rgb(255, 89, 74) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 15px; } footer>p>a { background: linear-gradient(to right, rgb(247, 52, 124) 0%, rgb(255, 89, 74) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: underline; } /*---------------------------------------- Footer ----------------------------------------*/ 
 <main> <div class="downloads"> <h2>Π—Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ</h2> <div class="warp"> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 0</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download="">Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 1</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download="">Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 2</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download="">Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 3</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download="">Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> </div> </div> </main> <footer> <p>Π’Π½ΠΈΠΌΠ°Π½ΠΈΠ΅! ВсС ΠΏΡ€Π°Π²Π° Π·Π°Ρ‰ΠΈΡ‰Π΅Π½Ρ‹! Β© <a href="http://vk.me/dskoper">MrSkoper</a>, 2018</p> </footer> 

Desired result:

Picture

Highlighted squares should be darker.

  • It is necessary to remove the absolute positioning of your wrapper and center by the margin method: 0 auto; - Alexander Slepenkov
  • There was a second problem Image - MrSkoper
  • And it’s compulsory to write in such a loud style, I think people are not blind - ishidex2
  • You need to clear the stream, (your wrapper): after {display: table; content: ''; clear: both} - Alexander Slepenkov
  • After the application broke the entire design. It was -> It became - MrSkoper

1 answer 1

I solved the problem. It remains to adapt.

Who needs a code:

It is advisable to open a new page.

 @import url('https://fonts.googleapis.com/css?family=Roboto'); * { padding: 0; margin: 0; } body { background: #f2f2f2f2; } .downloads h1, .downloads h2, .downloads h3, .downloads h4, .downloads h5, .downloads h6, .downloads h3, .downloads p, .downloads a { font-family: 'Roboto', sans-serif; text-decoration: none; } .downloads img { max-width: 260px; } .downloads { margin: 50px auto; max-width: 50vw; background: white; border-radius: 30px; } .downloads>h2 { position: relative; top: -20px; width: 200px; line-height: 40px; border-radius: 30px; color: white; text-align: center; background: linear-gradient(to right, #ff3f92 1%, #ff4242 100%); box-shadow: 1px 10px 20px -8px #2d2d2d; margin: 0 auto; } .download { position: relative; left: 50%; transform: translateX(-50%); max-width: calc((20vw + 20vw) + 100.5px); padding: 15px 0; } .download .item { display: inline-block; position: relative; max-width: 20vw; text-align: center; margin: 25px; padding: 25px; } .download .item::before { content: ''; position: absolute; top: 1.5%; left: 1.5%; width: 97%; height: 97%; border-radius: 30px; background: white; z-index: -3; } .download .item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 30px; background: linear-gradient(to right, #ff3f92 1%, #ff4242 100%); z-index: -4; transition: .25s; } .download .item:nth-child(2n)::after { background: linear-gradient(to right, #ff4242 1%, #ff3f92 100%); } .download .item:hover::after { box-shadow: 1px 10px 20px -8px #2d2d2d; transition: .25s; } .download .item img { max-width: 150px; border-radius: 30px; } .download .item h1, .download .item h2, .download .item h3, .download .item h4, .download .item h5, .download .item h6, .download .item p { background: linear-gradient(to right, #ff3f92 1%, #ff4242 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .download .item:nth-child(2n) h1, .download .item:nth-child(2n) h2, .download .item:nth-child(2n) h3, .download .item:nth-child(2n) h4, .download .item:nth-child(2n) h5, .download .item:nth-child(2n) h6, .download .item:nth-child(2n) p { background: linear-gradient(to right, #ff4242 1%, #ff3f92 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .download .item .txt { margin-top: 5px; margin-bottom: 5px; padding-top: 5px; padding-bottom: 5px; } .download .item .install a { position: relative; display: block; width: 60%; line-height: 30px; font-weight: bold; background: linear-gradient(to right, #ff3f92 1%, #ff4242 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0 auto; transition: .25s; } .download .item:nth-child(2n) .install a { background: linear-gradient(to right, #ff3f92 1%, #ff4242 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .download .item .install a::before { content: ''; position: absolute; top: 10%; left: 2%; width: 96%; height: 80%; border-radius: 30px; background: white; z-index: -1; transition: .25s; } .download .item .install a::after { content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; border-radius: 30px; background: linear-gradient(to right, #ff3f92 1%, #ff4242 100%); z-index: -2; } .download .item:nth-child(2n) .install a::after { background: linear-gradient(to right, #ff4242 1%, #ff3f92 100%); } .download .item .install a:hover { background: white; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .download .item .install a:hover::before { opacity: 0; transition: .25s; } .dw-copyright { width: 50vw; padding: 25px; margin: 0 auto; } .dw-copyright p, .dw-copyright a { text-align: center; font-family: 'Roboto', sans-serif; color: #aaaaaa; } .dw-copyright p:hover, .dw-copyright a:hover { background: linear-gradient(to right, #ff4242 1%, #ff3f92 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } 
 <main> <div class="downloads"> <h2>Π—Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ</h2> <div class="download"> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 0</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download>Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 1</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download>Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 2</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download>Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> <div class="item"> <div class="img"> <img src="../img/script.svg"> </div> <div class="txt"> <h3>Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π—Π°Π³Ρ€ΡƒΠ·ΠΎΠΊ</h3> <p>Π­Ρ‚ΠΎ скрипт ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π²Ρ‹ Π²ΠΈΠ΄Π΅Ρ‚ΠΈ ΠΏΠ΅Ρ€Π΅Π΄ собой</p> <h6>Π˜Π½Π΄ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ: 3</h6> </div> <div class="install"> <a href="files/sc-downloads.rar" download>Π£ΡΡ‚ΠΎΠ½ΠΎΠ²ΠΈΡ‚ΡŒ</a> </div> </div> </div> </div> </main> <footer> <div class="dw-copyright"> <p>Π’Π½ΠΈΠΌΠ°Π½ΠΈΠ΅! ВсС ΠΏΡ€Π°Π²Π° Π·Π°Ρ‰ΠΈΡ‰Π΅Π½Ρ‹! Β© <a href="http://vk.me/dskoper">MrSkoper</a>, 2018</p> </div> </footer> 

  • Can you put a positive amount of balls this issue? - MrSkoper
  • I will not put it, you have to "Install" through O - "Ustonovit" :) - Arthur