How to lower the icons a little more?

Asked

Viewed 545 times

0

I would like to lower the icons of Whatsapp, Facebook and Skype a little more but I’m not getting it. Follows the code:

function relogio() {
  var data = new Date();
  var horas = data.getHours();
  var minutos = data.getMinutes();
  var segundos = data.getSeconds();

  if (horas < 10) horas = "0" + horas;

  if (minutos < 10) minutos = "0" + minutos;

  if (segundos < 10) segundos = "0" + segundos;
  document.getElementById("relogio").innerHTML = horas + ":" + minutos + ":" + segundos;
}
window.setInterval(relogio, 1000);
#menu ul {
  width: 300px;
  height: auto;
  background-color: #2f4f4f;
  display: block;
  margin: 0;
  padding: 0;
  width: 306px;
  cursor: pointer;
}

#menu li {
  list-style: none;
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 2px solid #fff;
  color: #fffafa;
  font-family: helvetica;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

#menu li:hover {
  background: #ff4500;
  width: 266px;
}

#menu li {
  -webkit-transition: all .9s ease;
  -moz-transition: all .9s ease;
  -ms-transition: all .9s ease;
  transition: all .9s ease;
}

h1 {
  font-family: helvetica;
  color: #8fbc8f;
}

.center {
  padding-top: 5%;
  padding-left: 35%;
}

.logo {
  padding-left: 10px;
  padding-bottom: 50px;
}

body {
  background-image: Imagens/background-index01.jpg;
  background-repeat: no-repeat;
  background-size: cover;
  margin: center;
  padding: 50px 60px;
}

#relogio {
  color: #f90;
  font: bold 48px Arial;
  padding-top: 20px;
  padding-left: 650px;
}
<link href="https://fonts.googleapis.com/css?family=Yantramanav:100,300,400,500,700,900" rel="stylesheet">

<body background='Imagens/background-index01.jpg' onload="relogio();">
  <audio src="Músicas/Laura Branigan - Self Control.mp3" autoplay loop></audio>

  <div id="relogio"></div>

  <a href="page01.html">
    <div style=""><video class="center" width="500" height="300" autoplay loop>
                            <source src="Videos/Produce.mp4" type="video/mp4">
                      </video></div>
  </a>
  <a href="https://www.skype.com/pt">
    <div style=""><img class="logo" src="Imagens/skype.png" width="30" height="30"></div>
  </a>
  <a href="https://www.whatsapp.com">
    <div style=""><img class="logo" src="Imagens/whatsapp-messenger.png" width="30" height="30"></div>
  </a>
</body>

1 answer

0


Have you thought about using the attribute "margin" instead of "padding". Would place

.logo { margin-top: 100px; } for example.

Another thing, you could see the option to remove the "style" tag from your div'Since you are using CSS, the code is cleaner.

  • No, it worked :( looks like k icons are glued to the video.

  • Then the correct thing is you work with tags like header, footer, container, so your code gets more organized and so you can define the positions of the DIV’s. Give a read here in this W3 article, show possible positions https://www.w3schools.com/css/css_positioning.asp .

Browser other questions tagged

You are not signed in. Login or sign up in order to post.