.class in css not working proplerly how to fix? - html

Basically I made a class called botao for all the icons and buttons and icons or buttons image and put it in all of those elements in the html and then try to made their width and height equal to 10% so that I can see how it was but their sizes didn't change and I don't know why. Basically the css was supposed to change their size to 10% of the height and width of the whole page. What's going on here? How to solve it?
html, body {
margin:0;
min-height: 100%;
font-family: "Helvetica Neue", Helvetica, sans-serif;
color: #444;
-webkit-font-smoothing: antialiased;
background-image: url("http://wallpaperask.com/wp-content/uploads/Amazing-1920x1080-HD-wallpaper.jpg");
background-position: center;
background-repeat: no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family: Arial, Helvetica, sans-serif;
zoom:100%;
}
.botao{
width:10%;
height:10%;
}
/************** TOGGLE BUTTON***********************/
.switch {
position: relative;
display: inline-block;
right:0px;
width: 200px;
height: 34px;
padding:20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ca2222;
-webkit-transition: .30s;
transition: .30s;
}
.slider:before {
position: absolute;
content: "";
height: 50px;
width: 50px;
left: 10px;
bottom: 10px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2ab934;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(160px);
-ms-transform: translateX(160px);
transform: translateX(160px);
}
/*------ ADDED CSS ---------*/
.on
{
display: none;
}
.on, .off
{
color: white;
position: absolute;
transform: translate(-50%,-50%);
top: 50%;
left: 50%;
font-size: 30px;
font-family: Verdana, sans-serif;
}
input:checked+ .slider .on
{display: block;}
input:checked + .slider .off
{display: none;}
/*--------- END --------*/
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;}
/*******************************************SHUTDOWN BUTTON********************************/
#BtnTesteLogout{
background-color: Transparent;
background-repeat:no-repeat;
border: none;
cursor:pointer;
overflow: hidden;
}
#LOGOUT{
position: relative;
}
/*******************************************Split Screen, WIFI, Bluetooth*********************************/
#SSbutton, #WIFIButton, #BlueButton{
background-color: Transparent;
background-repeat:no-repeat;
border: none;
cursor:pointer;
overflow: hidden;
}
#SplitScreen{
}
#WIFI{
}
#Bluetooth{
}
#SplitScreen button img, #WIFI button img,#Bluetooth button img{
background-color: Transparent;
}
.clockdate-wrapper {
background-color: none;
padding:25px;
max-width:500px;
width:100%;
text-align:center;
border-radius:5px;
margin:0 auto;
height:300px;
position: absolute;
top:40px;
right: 100px;
border-radius: 15%;
}
#clock{
background-color:none;;
font-family: sans-serif;
font-size:100px;
text-shadow:0px 0px 1px #fff;
color:#fff;
}
#clock span {
color:white;
text-shadow:0px 0px 1px black;
font-size:50px;
position:relative;
top:-27px;
left:-10px;
}
#date {
letter-spacing:10px;
font-size:50px;
font-family:arial,sans-serif;
color:#fff;
}
/**************************************************************************WIFI DROPDOWN********************************************************/
/**************************************************************************BLUETTOTH WINDOW****************************************************/
#BlueWindow{
position: absolute;
width:1900px;
height:1500px;
left:1500px;
top:550px;
border-radius:10px black solid;
z-index: 10000;
}
#BlueWindowheader{
height: 100px;
background: rgb(30,87,153); /* Old browsers */
background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
}
#closeBlue{
width: 75px;
height: 75px;
top:0px;
left:0px;
background-color: none;
position:absolute;
}
#JoanaPTexto{
color:black;
text-align:center;
text-shadow: 3px 2px grey;
font-size:50px;
top: 20px;
position: relative;
}
#DocImgBlue{
width: 400px;
height: 400px;
background-color: none;
padding:40px;
}
#bottomBlue{
background-color:white;
height:1415px;
border-bottom-left-radius:5%;
border-bottom-right-radius:5%;
}
#MariaDoc{
position: absolute;
left:140px;
top:575px;
}
#closeButtonBlue{
width: 75px;
height: 75px;
background-color: none;
padding:5px;
top: 45px;
position: absolute;
right:10px;
background-color: Transparent;
background-repeat:no-repeat;
border: none;
cursor:pointer;
overflow: hidden;
}
#doc1{
z-index:10010;
}
/**************************************************************************BLUETOOTH DROPDOWN**************************************************/
#BlueButton{
}
#wrapperB {
color: #ffcccc;
top: 100px;
width: 400px;
}
#dispos{
color:black;
}
a {
text-decoration: none;
color: inherit;
}
nav ul ul {
-webkit-transition: all 500ms ease-in-out 500ms;
-moz-transition: all 500ms ease-in-out 500ms;
-ms-transition: all 500ms ease-in-out 500ms;
-o-transition: all 500ms ease-in-out 500ms;
transition: all 500ms ease-in-out 500ms;
-webkit-transform: rotateX(-90deg);
-moz-transform: rotateX(-90deg);
-ms-transform: rotateX(-90deg);
-o-transform: rotateX(-90deg);
transform: rotateX(-90deg);
-webkit-transform-origin: 0% 0%;
-moz-transform-origin: 0% 0%;
-ms-transform-origin: 0% 0%;
-o-transform-origin: 0% 0%;
transform-origin: 0% 0%;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-box-shadow: 0px -100px 500px rgba(0,0,0,0);
box-shadow: 0px -100px 500px rgba(0,0,0,0);
}
nav ul li:hover > ul {
-webkit-transition: all 500ms ease-in-out 0ms;
-moz-transition: all 500ms ease-in-out 0ms;
-ms-transition: all 500ms ease-in-out 0ms;
-o-transition: all 500ms ease-in-out 0ms;
transition: all 500ms ease-in-out 0ms;
-webkit-transform: rotateX(0deg);
-moz-transform: rotateX(0deg);
-ms-transform: rotateX(0deg);
-o-transform: rotateX(0deg);
transform: rotateX(0deg);
-webkit-box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
}
nav ul {
padding: 0;
list-style: none;
position: relative;
display: inline-table;
border-radius: 5px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
}
nav ul:after {
content: "";
clear: both;
display: block;
}
nav ul li {
float: left;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
border-right: 1px solid #890456;
}
nav ul > li:last-of-type {
border-right: none;
border-radius: 0 5px 5px 0;
}
nav ul span li { border-right: 1px solid #890456; }
nav ul li:first-of-type { border-radius: 5px 0 0 5px; }
#mphone:hover>a,#jphone:hover > a { color: #fff; }
#dispos:hover > a {color:none}
nav ul li a {
display: block;
padding: 10px 31px 10px 32px;
}
#wrapperB #mainB #subB {
position: absolute;
top: 400px;
padding: 0;
right: 20px;
width:1000px;
height:400px;
border-radius: 0 0 5px 5px;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#a7cfdf+0,23538a+100;Blue+3d+%238 */
background: #a7cfdf; /* Old browsers */
background: -moz-linear-gradient(-45deg, #a7cfdf 0%, #23538a 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, #a7cfdf 0%,#23538a 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, #a7cfdf 0%,#23538a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a7cfdf', endColorstr='#23538a',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
#wrapperB #mainB #subB li {
float: none;
position: relative;
border: none;
}
.bottom{
font-size:75px;
}
nav ul ul li:last-of-type { border-radius: 0 0 5px 5px; }
nav ul ul li a { padding: 8px 21px; }
/**************************************************************************SS DROPDOWN*************************************/
#SSButton{
}
#wrapperSS {
color: black;
top: 100px;
width: 700px;
}
a {
text-decoration: none;
color: inherit;
}
nav ul ul {
-webkit-transition: all 500ms ease-in-out 500ms;
-moz-transition: all 500ms ease-in-out 500ms;
-ms-transition: all 500ms ease-in-out 500ms;
-o-transition: all 500ms ease-in-out 500ms;
transition: all 500ms ease-in-out 500ms;
-webkit-transform: rotateX(-90deg);
-moz-transform: rotateX(-90deg);
-ms-transform: rotateX(-90deg);
-o-transform: rotateX(-90deg);
transform: rotateX(-90deg);
-webkit-transform-origin: 0% 0%;
-moz-transform-origin: 0% 0%;
-ms-transform-origin: 0% 0%;
-o-transform-origin: 0% 0%;
transform-origin: 0% 0%;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-box-shadow: 0px -100px 500px rgba(0,0,0,0);
box-shadow: 0px -100px 500px rgba(0,0,0,0);
}
nav ul li:hover > ul {
-webkit-transition: all 500ms ease-in-out 0ms;
-moz-transition: all 500ms ease-in-out 0ms;
-ms-transition: all 500ms ease-in-out 0ms;
-o-transition: all 500ms ease-in-out 0ms;
transition: all 500ms ease-in-out 0ms;
-webkit-transform: rotateX(0deg);
-moz-transform: rotateX(0deg);
-ms-transform: rotateX(0deg);
-o-transform: rotateX(0deg);
transform: rotateX(0deg);
-webkit-box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
}
nav ul {
padding: 0;
list-style: none;
position: relative;
display: inline-table;
border-radius: 5px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
}
nav ul:after {
content: "";
clear: both;
display: block;
}
nav ul li {
float: left;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
border-right: 1px solid #890456;
}
nav ul > li:last-of-type {
border-right: none;
border-radius: 0 5px 5px 0;
}
nav ul span li { border-right: 1px solid #890456; }
nav ul li:first-of-type { border-radius: 5px 0 0 5px; }
#mergeall:hover>a,#split2:hover > a,#split4:hover > a, #split6:hover > a { color: green; }
nav ul li a {
display: block;
padding: 10px 31px 10px 32px;
}
#wrapperSS #mainSS #subSS {
position: absolute;
top: 400px;
padding: 0;
right: 20px;
width:800px;
height:400px;
border-radius: 0 0 5px 5px;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#f6e6b4+0,ed9017+100;Yellow+3D+%231 */
background: #f6e6b4; /* Old browsers */
background: -moz-linear-gradient(-45deg, #f6e6b4 0%, #ed9017 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, #f6e6b4 0%,#ed9017 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, #f6e6b4 0%,#ed9017 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6e6b4', endColorstr='#ed9017',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
#wrapperSS #mainSS #subSS li {
float: none;
position: relative;
border: none;
}
.bottom{
font-size:75px;
}
nav ul ul li:last-of-type { border-radius: 0 0 5px 5px; }
nav ul ul li a { padding: 8px 21px; }
/********************************************BOTTOM BAR***********************************/
/* Place the navbar at the bottom of the page, and make it stick */
.navbar {
background-color: none;
left: 30%;
position: absolute;
bottom: 0;
height: 500px;
width: 1500px;
margin-left: auto;
margin-right: auto;
padding-left: 10%;
padding-right: 10%;
border-top-right-radius: 30px;
border-top-left-radius: 30px;
text-align: center;
overflow: hidden;
}
#NetImg, #contact{
padding:20px;
background: none;
}
/************************************************MAIN************************************/
#net{
position: absolute;
width:3505px;
height:1500px;
left:1500px;
top:550px;
border-radius:10px black solid;
z-index: 000;
}
#janela{
position: absolute;
width:1900px;
height:1500px;
left:1500px;
top:550px;
border-radius:10px black solid;
z-index: 000;
}
#closeDocs, #closeNet{
width: 75px;
height: 75px;
background-color: none;
padding:5px;
top: 35px;
position: absolute;
right:20px;
}
#docsHeadTexto,#NetTexto{
color:black;
text-align:center;
text-shadow: 3px 2px grey;
font-size:50px;
top: 20px;
position: relative;
}
#netBottom{
background-color:white;
height:2515px;
width: 3500px;
left:-1px;
top:130px;
position: absolute;
border-bottom-left-radius:0%;
border-bottom-right-radius:0%;
}
.windowTop,.windowTop2,.windowTop1{
height: 100px;
background: rgb(30,87,153); /* Old browsers */
background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
}
#DocImg{
width: 400px;
height: 400px;
background-color: none;
padding:40px;
}
#bottomWindowDocs{
background-color:white;
height:1415px;
border-bottom-left-radius:5%;
border-bottom-right-radius:5%;
}
#DocEx{
position: absolute;
left:140px;
top:575px;
}
/****************************************************** CONTACTOS *************************************/
/****************************************************** Calendario ************************************/
#calendar{
position:absolute;
height:3000px;
width:4000px;
top:300px;
left:800px;
}
#janelaCalendario{
z-index:0000;
}
#iconeCal{
}
#janelaCalendarioHeader{
position: absolute;
top:200px;
left:800px;
width:4005px;
}
#closeCal{
position: absolute;
top:10px;
left:3900px;
height: 90px;
width:90px;
}
<!DOCTYPE html>
<html>
<head>
<title>Desk+ - Grupo 36</title>
<link rel="stylesheet" type="text/css" href="PF1.1.css">
</head>
<body>
<div id="Logout">
<!---<img src="https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/apps/exit.png">-->
<button onclick="location.href = 'PF1.html';" id="BtnTesteLogout" class="float-left submit-button" ><img src="https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/apps/exit.png"></button>
</div>
<div id="BarraSDireita">
<div id="Bluetooth">
<nav id="wrapperB" class="wrapper">
<ul id="mainB" class="main">
<li id="frontB" class="botao" class="front"><img id ="BlueButton" class="botao" src="https://cdn.pixabay.com/photo/2015/03/12/12/22/bluetooth-670069_960_720.png">
<ul id="subB" class="sub">
<li class="bottom" id="onoff"><a> <label class="switch"><input type="checkbox" id="togBtn"><div class="slider round"><!--ADDED HTML --><span class="on">ON</span><span class="off">OFF</span><!--END--></div></label></a></li>
<li class="bottom" id="dispos"><a>Dispositivos emparelhados:</a></li>
<li class="bottom" id="jphone"><a onclick="abrirBlue()">Joana's Phone</a></li>
<li class="bottom" id="mphone"><a>Maria's Phone</a></li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="clockdate">
<div class="clockdate-wrapper">
<div id="clock"></div>
<div id="date"></div>
</div>
</div>
<div id="SplitScreen">
<nav id="wrapperSS" class="wrapper">
<ul id="mainSS" class="main">
<li id="frontSS" class="botao" class="front"><img class="botao" id ="SSButton" src="bullet-splitscreen.png">
<ul id="subSS" class="sub">
<li class="bottom" id="mergeall">Juntar todos os ecr&atildes</li>
<li class="bottom" id="split2">Dividir em 2</li>
<li class="bottom" id="split4">Dividir em 4</li>
<li class="bottom" id="split6">Dividir em 6</li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="WIFI">
<button id="WIFIButton" class=botao><img class="botao" src="https://purepng.com/public/uploads/large/purepng.com-wifi-icon-redwifi-iconwifiiconwireless-connection-1701528436213ktjmp.png"></button>
</div>
</div>
<div id="BlueWindow" style="display:none;">
<div id="BlueWindowheader">
<header class="windowTop1">
<button id="closeButtonBlue"><img id="closeBlue" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharBlue()"></button>
<h1 id="JoanaPTexto">Joana's Phone</h1>
</header>
</div>
<div id="bottomBlue">
<div id="doc1">
<div id="doc1header">
<img id="DocImgBlue" src="https://img.icons8.com/pastel-glyph/2x/file.png">
</div>
<h1 id="MariaDoc">Doc-exemplo-Joana</h1>
</div>
</div>
</div>
<div id="DOCS">
<img id="documentos_logo" class="botao" src="https://marketplace.canva.com/MAB7OE9Jppw/1/thumbnail_large/canva-folder-file-yellow-document-info-icon.-vector-graphic-MAB7OE9Jppw.png" alt="documentos" onclick="openDocs()">
</div>
<div id="janela">
</div>
<div id="docwindow" style="display: none;">
<div id="docwindowheader">
<header class="windowTop">
<h1 id="docsHeadTexto">Documentos</h1>
<img id="closeDocs" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="closeMain()">
</header>
</div>
<div id="bottomWindowDocs">
<div class="documents">
<div>
<img id="DocImg" src="https://img.icons8.com/pastel-glyph/2x/file.png" alt="doc">
<h1 id="DocEx">Doc-exemplo</h1>
</div>
</div>
<!----<div id="DocExemplo" S>
<header class="windowhead">
Documento exemplo
<img class="X" src="https://banner2.kisspng.com/20180402/dwe/kisspng-computer-icons-social-media-email-webmail-cancel-button-5ac240963875f3.0504665115226799582313.jpg" alt="X" onclick="closeMain()">
<button id="share">share</button>
<button id="back">back</button>
</header>
<div id="corpo">
<h4>Este é um exemplo de Documento</h4>
</div>
</div>-->
</div>
</div>
<div id="calendario">
<a id="iconeCal" class="botao" onclick="abrirCal()"><img src="https://www.manisteelibrary.org/images/events-calendar.png/##images/image.png"></a>
</div>
<div id="janelaCalendario" style="display:none;">
<div id="janelaCalendarioHeader">
<header class="windowTop">
<img id="closeCal" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharCal()">
</header>
</div>
<iframe src="https://teamup.com/ksbe6drnzpwdbyrgp2" id="calendar"></iframe>
</div>
<div id="net" style=display:none;>
<div id="Netheader">
<header class="windowTop2">
<h1 id="NetTexto">Desk+ Browser</h1>
<img id="closeNet" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharNet()">
</header>
</div>
<div id="netBottom1">
<iframe id="netBottom" src="https://www.bing.com/" id="google"></iframe>
</div>
</div>
<div class="navbar">
<a id="NET" class="botao" onclick="openNet()"><img class="botao" src="NET.png" id="NetImg"></a>
<a onclick="openAdressb()" class="botao"><img class="botao" src="http://download.seaicons.com/icons/paomedia/small-n-flat/1024/address-book-alt-icon.png" id="contact"></a>
</div>
</body>
<script src="PF1.1.js"></script>
</html>
Also some elements of the class .botao are not appearing

Try .botao img{ width:10%; height:10%; }
here is your edited code:
<!DOCTYPE html>
<html>
<head>
<title>Desk+ - Grupo 36</title>
<link rel="stylesheet" type="text/css" href="PF1.1.css">
</head>
<body>
<div id="Logout">
<!---<img src="https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/apps/exit.png">-->
<button onclick="location.href = 'PF1.html';" id="BtnTesteLogout" class="float-left submit-button" ><img src="https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/apps/exit.png"></button>
</div>
<div id="BarraSDireita">
<div id="Bluetooth">
<nav id="wrapperB" class="wrapper">
<ul id="mainB" class="main">
<li id="frontB" class="front"><img id ="BlueButton" src="https://cdn.pixabay.com/photo/2015/03/12/12/22/bluetooth-670069_960_720.png">
<ul id="subB" class="sub">
<li class="bottom" id="onoff"><a> <label class="switch"><input type="checkbox" id="togBtn"><div class="slider round"><!--ADDED HTML --><span class="on">ON</span><span class="off">OFF</span><!--END--></div></label></a></li>
<li class="bottom" id="dispos"><a>Dispositivos emparelhados:</a></li>
<li class="bottom" id="jphone"><a onclick="abrirBlue()">Joana's Phone</a></li>
<li class="bottom" id="mphone"><a>Maria's Phone</a></li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="clockdate">
<div class="clockdate-wrapper">
<div id="clock"></div>
<div id="date"></div>
</div>
</div>
<div id="SplitScreen">
<nav id="wrapperSS" class="wrapper">
<ul id="mainSS" class="main">
<li id="frontSS" class="front"><img id ="SSButton" src="bullet-splitscreen.png">
<ul id="subSS" class="sub">
<li class="bottom" id="mergeall">Juntar todos os ecr&atildes</li>
<li class="bottom" id="split2">Dividir em 2</li>
<li class="bottom" id="split4">Dividir em 4</li>
<li class="bottom" id="split6">Dividir em 6</li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="WIFI">
<button id="WIFIButton" class="botao"><img src="https://purepng.com/public/uploads/large/purepng.com-wifi-icon-redwifi-iconwifiiconwireless-connection-1701528436213ktjmp.png"></button>
</div>
</div>
<div id="BlueWindow" style="display:none;">
<div id="BlueWindowheader">
<header class="windowTop1">
<button id="closeButtonBlue"><img id="closeBlue" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharBlue()"></button>
<h1 id="JoanaPTexto">Joana's Phone</h1>
</header>
</div>
<div id="bottomBlue">
<div id="doc1">
<div id="doc1header">
<img id="DocImgBlue" src="https://img.icons8.com/pastel-glyph/2x/file.png">
</div>
<h1 id="MariaDoc">Doc-exemplo-Joana</h1>
</div>
</div>
</div>
<div id="DOCS" class="botao" >
<img id="documentos_logo"src="https://marketplace.canva.com/MAB7OE9Jppw/1/thumbnail_large/canva-folder-file-yellow-document-info-icon.-vector-graphic-MAB7OE9Jppw.png" alt="documentos" onclick="openDocs()">
</div>
<div id="janela">
</div>
<div id="docwindow" style="display: none;">
<div id="docwindowheader">
<header class="windowTop">
<h1 id="docsHeadTexto">Documentos</h1>
<img id="closeDocs" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="closeMain()">
</header>
</div>
<div id="bottomWindowDocs">
<div class="documents">
<div>
<img id="DocImg" src="https://img.icons8.com/pastel-glyph/2x/file.png" alt="doc">
<h1 id="DocEx">Doc-exemplo</h1>
</div>
</div>
<!----<div id="DocExemplo" S>
<header class="windowhead">
Documento exemplo
<img class="X" src="https://banner2.kisspng.com/20180402/dwe/kisspng-computer-icons-social-media-email-webmail-cancel-button-5ac240963875f3.0504665115226799582313.jpg" alt="X" onclick="closeMain()">
<button id="share">share</button>
<button id="back">back</button>
</header>
<div id="corpo">
<h4>Este é um exemplo de Documento</h4>
</div>
</div>-->
</div>
</div>
<div id="calendario">
<a id="iconeCal" class="botao" onclick="abrirCal()"><img src="https://www.manisteelibrary.org/images/events-calendar.png/##images/image.png"></a>
</div>
<div id="janelaCalendario" style="display:none;">
<div id="janelaCalendarioHeader">
<header class="windowTop">
<img id="closeCal" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharCal()">
</header>
</div>
<iframe src="https://teamup.com/ksbe6drnzpwdbyrgp2" id="calendar"></iframe>
</div>
<div id="net" style=display:none;>
<div id="Netheader">
<header class="windowTop2">
<h1 id="NetTexto">Desk+ Browser</h1>
<img id="closeNet" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharNet()">
</header>
</div>
<div id="netBottom1">
<iframe id="netBottom" src="https://www.bing.com/" id="google"></iframe>
</div>
</div>
<div class="navbar">
<a id="NET" onclick="openNet()" class="botao"><img src="NET.png" id="NetImg"></a>
<a onclick="openAdressb()" class="botao" ><img src="http://download.seaicons.com/icons/paomedia/small-n-flat/1024/address-book-alt-icon.png" id="contact"></a>
</div>
</body>
<script src="PF1.1.js"></script>
</html>

One of the general rules of CSS specificity is that id is more specific than class.
Let's take a line of code from your code:
If you have a look in the element inspector for styles, you can see your botao class's width and height are being overwritten (stroked off) by #BlueButton's width and height.
This is the reason why your image size is not 10% and as a fix to this you can assign BlueButton to the preceding anchor tag (if you don't have any tight dependency on id and element type).

Related

How to make auto fit all resolutions and all screens html page?

I have an HTML page with a lot of css linked to the HTML page but I made the size way too big to fit all screens and all resolutions. I want it to be automatically resizable so when you go to a lower or higher resolution to show the whole page all the times and not changing how the cod works. I put here the css and the HTML not the js because it's not necessary in this case. How can I change the size of all the stuff in the page included the page to fit automatically every pc possible?
html, body {
width: 3779.527559055px;
height: 100%;
font-family: "Helvetica Neue", Helvetica, sans-serif;
color: #444;
-webkit-font-smoothing: antialiased;
background-image: url("https://images4.alphacoders.com/111/111298.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: 350% 100%;
font-family: Arial, Helvetica, sans-serif;
}
/************** TOGGLE BUTTON***********************/
.switch {
position: relative;
display: inline-block;
right:0px;
width: 200px;
height: 34px;
padding:20px;
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ca2222;
-webkit-transition: .30s;
transition: .30s;
}
.slider:before {
position: absolute;
content: "";
height: 50px;
width: 50px;
left: 10px;
bottom: 10px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2ab934;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(160px);
-ms-transform: translateX(160px);
transform: translateX(160px);
}
/*------ ADDED CSS ---------*/
.on
{
display: none;
}
.on, .off
{
color: white;
position: absolute;
transform: translate(-50%,-50%);
top: 50%;
left: 50%;
font-size: 30px;
font-family: Verdana, sans-serif;
}
input:checked+ .slider .on
{display: block;}
input:checked + .slider .off
{display: none;}
/*--------- END --------*/
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;}
/*******************************************SHUTDOWN BUTTON********************************/
#BtnTesteLogout{
background-color: Transparent;
background-repeat:no-repeat;
border: none;
cursor:pointer;
overflow: hidden;
}
#LOGOUT{
position: relative;
}
#Logout button img{
width: 400px;
height: 400px;
}
/*******************************************Split Screen, WIFI, Bluetooth*********************************/
#SSbutton, #WIFIButton, #BlueButton{
background-color: Transparent;
background-repeat:no-repeat;
border: none;
cursor:pointer;
overflow: hidden;
}
#SplitScreen{
position: absolute;
top: 10px;
height: 400px;
width: 400px;
right: 1700px;
}
#WIFI{
position: absolute;
top: 0px;
height: 400px;
width: 400px;
right: 700px;
}
#Bluetooth{
position: absolute;
top: 10px;
height: 400px;
width: 400px;
right: 1200px;
}
#SplitScreen button img, #WIFI button img,#Bluetooth button img{
width: 400px;
height: 400px;
background-color: Transparent;
}
.clockdate-wrapper {
background-color: none;
padding:25px;
max-width:500px;
width:100%;
text-align:center;
border-radius:5px;
margin:0 auto;
height:300px;
position: absolute;
top:40px;
right: 100px;
border-radius: 15%;
}
#clock{
background-color:none;;
font-family: sans-serif;
font-size:100px;
text-shadow:0px 0px 1px #fff;
color:#fff;
}
#clock span {
color:white;
text-shadow:0px 0px 1px black;
font-size:50px;
position:relative;
top:-27px;
left:-10px;
}
#date {
letter-spacing:10px;
font-size:50px;
font-family:arial,sans-serif;
color:#fff;
}
/**************************************************************************WIFI DROPDOWN********************************************************/
/**************************************************************************BLUETTOTH WINDOW****************************************************/
#BlueWindow{
position: absolute;
width:1900px;
height:1500px;
left:1500px;
top:550px;
border-radius:10px black solid;
z-index: 10000;
}
#BlueWindowheader{
height: 100px;
background: rgb(30,87,153); /* Old browsers */
background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
}
#closeBlue{
width: 75px;
height: 75px;
top:0px;
left:0px;
background-color: none;
position:absolute;
}
#JoanaPTexto{
color:black;
text-align:center;
text-shadow: 3px 2px grey;
font-size:50px;
top: 20px;
position: relative;
}
#DocImgBlue{
width: 400px;
height: 400px;
background-color: none;
padding:40px;
}
#bottomBlue{
background-color:white;
height:1415px;
border-bottom-left-radius:5%;
border-bottom-right-radius:5%;
}
#MariaDoc{
position: absolute;
left:140px;
top:575px;
}
#closeButtonBlue{
width: 75px;
height: 75px;
background-color: none;
padding:5px;
top: 45px;
position: absolute;
right:10px;
background-color: Transparent;
background-repeat:no-repeat;
border: none;
cursor:pointer;
overflow: hidden;
}
#doc1{
z-index:10010;
}
/**************************************************************************BLUETOOTH DROPDOWN**************************************************/
#BlueButton{
width:300px;
height:400px;
top:-28px;
right:-20px;
position: relative;
}
#wrapperB {
color: #ffcccc;
top: 100px;
width: 400px;
}
#dispos{
color:black;
}
a {
text-decoration: none;
color: inherit;
}
nav ul ul {
-webkit-transition: all 500ms ease-in-out 500ms;
-moz-transition: all 500ms ease-in-out 500ms;
-ms-transition: all 500ms ease-in-out 500ms;
-o-transition: all 500ms ease-in-out 500ms;
transition: all 500ms ease-in-out 500ms;
-webkit-transform: rotateX(-90deg);
-moz-transform: rotateX(-90deg);
-ms-transform: rotateX(-90deg);
-o-transform: rotateX(-90deg);
transform: rotateX(-90deg);
-webkit-transform-origin: 0% 0%;
-moz-transform-origin: 0% 0%;
-ms-transform-origin: 0% 0%;
-o-transform-origin: 0% 0%;
transform-origin: 0% 0%;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-box-shadow: 0px -100px 500px rgba(0,0,0,0);
box-shadow: 0px -100px 500px rgba(0,0,0,0);
}
nav ul li:hover > ul {
-webkit-transition: all 500ms ease-in-out 0ms;
-moz-transition: all 500ms ease-in-out 0ms;
-ms-transition: all 500ms ease-in-out 0ms;
-o-transition: all 500ms ease-in-out 0ms;
transition: all 500ms ease-in-out 0ms;
-webkit-transform: rotateX(0deg);
-moz-transform: rotateX(0deg);
-ms-transform: rotateX(0deg);
-o-transform: rotateX(0deg);
transform: rotateX(0deg);
-webkit-box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
}
nav ul {
padding: 0;
list-style: none;
position: relative;
display: inline-table;
border-radius: 5px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
}
nav ul:after {
content: "";
clear: both;
display: block;
}
nav ul li {
float: left;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
border-right: 1px solid #890456;
}
nav ul > li:last-of-type {
border-right: none;
border-radius: 0 5px 5px 0;
}
nav ul span li { border-right: 1px solid #890456; }
nav ul li:first-of-type { border-radius: 5px 0 0 5px; }
#mphone:hover>a,#jphone:hover > a { color: #fff; }
#dispos:hover > a {color:none}
nav ul li a {
display: block;
padding: 10px 31px 10px 32px;
}
#wrapperB #mainB #subB {
position: absolute;
top: 400px;
padding: 0;
right: 20px;
width:1000px;
height:400px;
border-radius: 0 0 5px 5px;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#a7cfdf+0,23538a+100;Blue+3d+%238 */
background: #a7cfdf; /* Old browsers */
background: -moz-linear-gradient(-45deg, #a7cfdf 0%, #23538a 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, #a7cfdf 0%,#23538a 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, #a7cfdf 0%,#23538a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a7cfdf', endColorstr='#23538a',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
#wrapperB #mainB #subB li {
float: none;
position: relative;
border: none;
}
.bottom{
font-size:75px;
}
nav ul ul li:last-of-type { border-radius: 0 0 5px 5px; }
nav ul ul li a { padding: 8px 21px; }
/**************************************************************************SS DROPDOWN*************************************/
#SSButton{
width:400px;
height:400px;
top:-28px;
right:-20px;
position: relative;
}
#wrapperSS {
color: black;
top: 100px;
width: 700px;
}
a {
text-decoration: none;
color: inherit;
}
nav ul ul {
-webkit-transition: all 500ms ease-in-out 500ms;
-moz-transition: all 500ms ease-in-out 500ms;
-ms-transition: all 500ms ease-in-out 500ms;
-o-transition: all 500ms ease-in-out 500ms;
transition: all 500ms ease-in-out 500ms;
-webkit-transform: rotateX(-90deg);
-moz-transform: rotateX(-90deg);
-ms-transform: rotateX(-90deg);
-o-transform: rotateX(-90deg);
transform: rotateX(-90deg);
-webkit-transform-origin: 0% 0%;
-moz-transform-origin: 0% 0%;
-ms-transform-origin: 0% 0%;
-o-transform-origin: 0% 0%;
transform-origin: 0% 0%;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-box-shadow: 0px -100px 500px rgba(0,0,0,0);
box-shadow: 0px -100px 500px rgba(0,0,0,0);
}
nav ul li:hover > ul {
-webkit-transition: all 500ms ease-in-out 0ms;
-moz-transition: all 500ms ease-in-out 0ms;
-ms-transition: all 500ms ease-in-out 0ms;
-o-transition: all 500ms ease-in-out 0ms;
transition: all 500ms ease-in-out 0ms;
-webkit-transform: rotateX(0deg);
-moz-transform: rotateX(0deg);
-ms-transform: rotateX(0deg);
-o-transform: rotateX(0deg);
transform: rotateX(0deg);
-webkit-box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
}
nav ul {
padding: 0;
list-style: none;
position: relative;
display: inline-table;
border-radius: 5px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
}
nav ul:after {
content: "";
clear: both;
display: block;
}
nav ul li {
float: left;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 200px;
-ms-perspective: 200px;
perspective: 200px;
border-right: 1px solid #890456;
}
nav ul > li:last-of-type {
border-right: none;
border-radius: 0 5px 5px 0;
}
nav ul span li { border-right: 1px solid #890456; }
nav ul li:first-of-type { border-radius: 5px 0 0 5px; }
#mergeall:hover>a,#split2:hover > a,#split4:hover > a, #split6:hover > a { color: green; }
nav ul li a {
display: block;
padding: 10px 31px 10px 32px;
}
#wrapperSS #mainSS #subSS {
position: absolute;
top: 400px;
padding: 0;
right: 20px;
width:800px;
height:400px;
border-radius: 0 0 5px 5px;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#f6e6b4+0,ed9017+100;Yellow+3D+%231 */
background: #f6e6b4; /* Old browsers */
background: -moz-linear-gradient(-45deg, #f6e6b4 0%, #ed9017 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, #f6e6b4 0%,#ed9017 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, #f6e6b4 0%,#ed9017 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6e6b4', endColorstr='#ed9017',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
#wrapperSS #mainSS #subSS li {
float: none;
position: relative;
border: none;
}
.bottom{
font-size:75px;
}
nav ul ul li:last-of-type { border-radius: 0 0 5px 5px; }
nav ul ul li a { padding: 8px 21px; }
/********************************************BOTTOM BAR***********************************/
/* Place the navbar at the bottom of the page, and make it stick */
.navbar {
background-color: none;
left: 30%;
position: absolute;
bottom: 0;
height: 500px;
width: 1500px;
margin-left: auto;
margin-right: auto;
padding-left: 10%;
padding-right: 10%;
border-top-right-radius: 30px;
border-top-left-radius: 30px;
text-align: center;
overflow: hidden;
}
#NetImg, #Home, #contact{
width: 400px;
height: 400px;
padding:20px;
background: none;
}
/************************************************MAIN************************************/
#net{
position: absolute;
width:3505px;
height:1500px;
left:1500px;
top:550px;
border-radius:10px black solid;
z-index: 000;
}
#janela{
position: absolute;
width:1900px;
height:1500px;
left:1500px;
top:550px;
border-radius:10px black solid;
z-index: 000;
}
#closeDocs, #closeNet{
width: 75px;
height: 75px;
background-color: none;
padding:5px;
top: 35px;
position: absolute;
right:20px;
}
#docsHeadTexto,#NetTexto{
color:black;
text-align:center;
text-shadow: 3px 2px grey;
font-size:50px;
top: 20px;
position: relative;
}
#netBottom{
background-color:white;
height:2515px;
width: 3500px;
left:-1px;
top:130px;
position: absolute;
border-bottom-left-radius:0%;
border-bottom-right-radius:0%;
}
.windowTop,.windowTop2,.windowTop1{
height: 100px;
background: rgb(30,87,153); /* Old browsers */
background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
}
#DocImg{
width: 400px;
height: 400px;
background-color: none;
padding:40px;
}
#bottomWindowDocs{
background-color:white;
height:1415px;
border-bottom-left-radius:5%;
border-bottom-right-radius:5%;
}
#DocEx{
position: absolute;
left:140px;
top:575px;
}
/****************************************************** CONTACTOS *************************************/
/****************************************************** Calendario ************************************/
#calendar{
position:absolute;
height:3000px;
width:4000px;
top:300px;
left:800px;
}
#janelaCalendario{
z-index:0000;
}
#iconeCal{
height:400px;
width:400px;
}
#janelaCalendarioHeader{
position: absolute;
top:200px;
left:800px;
width:4005px;
}
#closeCal{
position: absolute;
top:10px;
left:3900px;
height: 90px;
width:90px;
}
<!DOCTYPE html>
<html>
<head>
<title>Desk+ - Grupo 36</title>
<link rel="stylesheet" type="text/css" href="PF1.1.css">
</head>
<body onload="startTime()">
<div id="Logout">
<!---<img src="https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/apps/exit.png">-->
<button onclick="location.href = 'PF1.html';" id="BtnTesteLogout" class="float-left submit-button" ><img src="https://cdn2.iconfinder.com/data/icons/crystalproject/crystal_project_256x256/apps/exit.png"></button>
</div>
<div id="BarraSDireita">
<div id="Bluetooth">
<nav id="wrapperB" class="wrapper">
<ul id="mainB" class="main">
<li id="frontB" class="front"><img id ="BlueButton" src="https://cdn.pixabay.com/photo/2015/03/12/12/22/bluetooth-670069_960_720.png">
<ul id="subB" class="sub">
<li class="bottom" id="onoff"><a> <label class="switch"><input type="checkbox" id="togBtn"><div class="slider round"><!--ADDED HTML --><span class="on">ON</span><span class="off">OFF</span><!--END--></div></label></a></li>
<li class="bottom" id="dispos"><a>Dispositivos emparelhados:</a></li>
<li class="bottom" id="jphone"><a onclick="abrirBlue()">Joana's Phone</a></li>
<li class="bottom" id="mphone"><a>Maria's Phone</a></li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="clockdate">
<div class="clockdate-wrapper">
<div id="clock"></div>
<div id="date"></div>
</div>
</div>
<div id="SplitScreen">
<nav id="wrapperSS" class="wrapper">
<ul id="mainSS" class="main">
<li id="frontSS" class="front"><img id ="SSButton" src="bullet-splitscreen.png">
<ul id="subSS" class="sub">
<li class="bottom" id="mergeall">Juntar todos os ecr&atildes</li>
<li class="bottom" id="split2">Dividir em 2</li>
<li class="bottom" id="split4">Dividir em 4</li>
<li class="bottom" id="split6">Dividir em 6</li>
</ul>
</li>
</ul>
</nav>
</div>
<div id="WIFI">
<div class="dropdown">
<button id="WIFIButton"><img src="https://purepng.com/public/uploads/large/purepng.com-wifi-icon-redwifi-iconwifiiconwireless-connection-1701528436213ktjmp.png"></button>
</div>
</div>
</div>
<div id="BlueWindow" style="display:none;">
<div id="BlueWindowheader">
<header class="windowTop1">
<button id="closeButtonBlue"><img id="closeBlue" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharBlue()"></button>
<h1 id="JoanaPTexto">Joana's Phone</h1>
</header>
</div>
<div id="bottomBlue">
<div id="doc1">
<div id="doc1header">
<img id="DocImgBlue" src="https://img.icons8.com/pastel-glyph/2x/file.png">
</div>
<h1 id="MariaDoc">Doc-exemplo-Joana</h1>
</div>
</div>
</div>
<div id="DOCS">
<img id="documentos_logo" src="https://marketplace.canva.com/MAB7OE9Jppw/1/thumbnail_large/canva-folder-file-yellow-document-info-icon.-vector-graphic-MAB7OE9Jppw.png" alt="documentos" onclick="openDocs()">
</div>
<div id="janela">
</div>
<div id="docwindow" style="display: none;">
<div id="docwindowheader">
<header class="windowTop">
<h1 id="docsHeadTexto">Documentos</h1>
<img id="closeDocs" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="closeMain()">
</header>
</div>
<div id="bottomWindowDocs">
<div class="documents">
<div>
<img id="DocImg" src="https://img.icons8.com/pastel-glyph/2x/file.png" alt="doc">
<h1 id="DocEx">Doc-exemplo</h1>
</div>
</div>
<!----<div id="DocExemplo" S>
<header class="windowhead">
Documento exemplo
<img class="X" src="https://banner2.kisspng.com/20180402/dwe/kisspng-computer-icons-social-media-email-webmail-cancel-button-5ac240963875f3.0504665115226799582313.jpg" alt="X" onclick="closeMain()">
<button id="share">share</button>
<button id="back">back</button>
</header>
<div id="corpo">
<h4>Este é um exemplo de Documento</h4>
</div>
</div>-->
</div>
</div>
<div id="calendario">
<a id="iconeCal" onclick="abrirCal()"><img src="https://www.manisteelibrary.org/images/events-calendar.png/##images/image.png"></a>
</div>
<div id="janelaCalendario" style="display:none;">
<div id="janelaCalendarioHeader">
<header class="windowTop">
<img id="closeCal" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharCal()">
</header>
</div>
<iframe src="https://teamup.com/ksbe6drnzpwdbyrgp2" id="calendar"></iframe>
</div>
<div id="net" style=display:none;>
<div id="Netheader">
<header class="windowTop2">
<h1 id="NetTexto">Desk+ Browser</h1>
<img id="closeNet" class="X" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Actions-dialog-close-icon.png" alt="X" onclick="fecharNet()">
</header>
</div>
<div id="netBottom1">
<iframe id="netBottom" src="https://www.bing.com/" id="google"></iframe>
</div>
</div>
<div class="navbar">
<a id="Home" onclick="location.href = 'PF1.1.html';" ><img src="home.png" id="Home"></a>
<a id="NET" onclick="openNet()"><img src="NET.png" id="NetImg"></a>
<a onclick="openAdressb()"><img src="http://download.seaicons.com/icons/paomedia/small-n-flat/1024/address-book-alt-icon.png" id="contact"></a>
</div>
</body>
<script src="PF1.1.js"></script>
</html>
There isn't a one trick fix for this unfortunately.
I recommend you read about media queries!
https://www.w3schools.com/css/css3_mediaqueries_ex.asp

CSS li elements won't display horizontally

I'm attempting to make the Nav li elements align side by side horizontally and not vertically. The Nav li elements also show a list style (bullet points) which should not show. However, after using display: inline-block; & list-style-type: none; my attempt fail?
CSS:
/*global styles*/
body {
width: 100%;
margin: 0;
list-style: none;
text-decoration: none;
font-size:1.05em;
font-family: Helvetica Neue, Helvetica, Arial, Sans-serif;
}
a{
appearance: none;
font-size:1.05em;
font-family: Helvetica Neue, Helvetica, Arial, Sans-serif;
background:transparent;
color: #000000;
border:none;
letter-spacing:0.15em;
text-transform:uppercase;
transition: color 0.5s ease;
list-style: none;
text-decoration: none;
}
a:focus, a:hover {
color: #e6e8eb;
cursor:pointer;
transition: color 0.5s ease;
}
a:active {
color: #484747;
}
/*----/----global styles*/
/*navigation icon*/
#toggle-menu {
float:right;
display: block;
width: 15px;
height: 15px;
padding: 20px;
}
#toggle-menu div {
width: 15px;
height: 15px;
position: relative;
}
#toggle-menu span {
display: block;
width: 15px;
height: 3px;
background: #545454;
position: absolute;
-webkit-transition: -webkit-transform 0.2s ease-in-out, top 0.2s ease-in-out 0.2s, opacity 0.2s ease-in-out 0.2s;
-moz-transition: -moz-transform 0.2s ease-in-out, top 0.2s ease-in-out 0.2s, opacity 0.2s ease-in-out 0.2s;
transition: transform 0.2s ease-in-out, top 0.2s ease-in-out 0.2s, opacity 0.2s ease-in-out 0.2s;
-webkit-transform-origin: center;
-moz-transform-origin: center;
transform-origin: center;
}
#toggle-menu span.top {
top: 0px;
}
#toggle-menu span.middle {
top: 6px;
}
#toggle-menu span.bottom {
top: 12px;
}
/*----/----navigation icon*/
/*navigation icon animation*/
#toggle-menu.menu-is-active span {
-webkit-transition: -webkit-transform 0.2s ease-in-out 0.2s, top 0.2s ease-in-out, opacity 0.2s ease-in-out;
-moz-transition: -moz-transform 0.2s ease-in-out 0.2s, top 0.2s ease-in-out, opacity 0.2s ease-in-out;
transition: transform 0.2s ease-in-out 0.2s, top 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
#toggle-menu.menu-is-active span.top, #toggle-menu.menu-is-active span.middle {
top: 6px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
}
#toggle-menu.menu-is-active span.middle {
opacity: 0;
}
#toggle-menu.menu-is-active span.bottom {
top: 6px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg);
}
/*----/----navigation icon animation*/
/*Nav Bar*/
.header {
border-bottom: 0.5px solid rgba(0,0,0,.2);
background: #ffffff;
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 99999;
}
.nav {
list-style-type: none;
position: fixed;
width: 100%;
text-align: center;
display: inline-block;
background-color: #ffffff;
left:0;
top: 55px;
border-bottom: 0.5px solid rgba(0,0,0,.2);
border-top: 0.5px solid rgba(0,0,0,.2);
cursor: pointer;
color: #545454;
font-size:.8em;
letter-spacing:0.05em;
}
.seemore {
display: inline-block;
padding-right: 20px;
}
#navpromo{
border-top: 0.5px solid rgba(0,0,0,.2);
padding-top: 40px;
padding-bottom: 40px;
}
#instagram{
display: inline-block;
appearance: none;
width:120px;
height:50px;
font-size:1.05em;
background: transparent;
color: #464c4c;
border:none;
text-align: center;
letter-spacing:0.15em;
text-transform:uppercase;
transition: color 0.5s ease;
outline:none;
border:none;
box-shadow: rgba(30, 22, 54, 0.4) 0 0px 0px 2px inset;
}
#instagram:hover {
color: #e6e8eb;
cursor:pointer;
transition: color 0.5s ease;
}
.nav > li:hover {
left: 0;
padding-top: 0.6em;
padding-bottom: 1em;
cursor:pointer;
list-style-type: none;
}
/*----/----Nav Bar*/
/*in*/
.in {
float:left;
display: inline-block;
width: 25px;
height: 25px;
padding: 15px;
cursor: pointer;
color: #545454;
font-size:.8em;
letter-spacing:0.05em;
border-top: 0.5px solid rgba(0,0,0,.2);
}
/*----/----in*/
/*logo*/
.logo {
position: absolute;
left: 50%;
display: inline-block;
width: 15px;
height: 15px;
padding: 18px;
cursor: pointer;
color: #545454;
font-size:.8em;
letter-spacing:0.05em;
}
/*----/----logo*/
/*Panels*/
.panel {
width: 100%;
color: #adadad;
height: 15em;
padding: 7em;
box-sizing: border-box;
background: #ffffff;
border-top: 0.5px solid rgba(0,0,0,.2);
text-align: center;
}
#panel1 {
background: #b8b8b8;
height: 30em;
}
.links{
color: #adadad;
}
/*----/----Panels*/
/*promo video scroll*/
#hero, section {
padding: 150px;
}
#scroll {
color: white;
font-size: 26px;
line-height: 26px;
cursor: pointer;
position: absolute;
left:50%;
-webkit-transition: -webkit-transform 0.6s ease;
-moz-transition: -moz-transform 0.6s ease;
transition: transform 0.6s ease;
}
#scroll.clicked {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
}
#scroll.rotate {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-o-transform: rotate(180deg);
-ms-transform: rotate(3180deg);
}
#scroll span {
position: relative;
bottom: -10px;
}
.arrow-bounce {
-webkit-animation: arrow 1s infinite;
-moz-animation: arrow 1s infinite;
-o-animation: arrow 1s infinite;
animation: arrow 1s infinite;
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
#-webkit-keyframes arrow {
0% {
bottom: -13px;
}
50% {
bottom: -8px;
}
100% {
bottom: -13px;
}
}
#-moz-keyframes arrow {
0% {
bottom: -13px;
}
50% {
bottom: -8px;
}
100% {
bottom: -13px;
}
}
#keyframes arrow {
0% {
bottom: -13px;
}
50% {
bottom: -8px;
}
100% {
bottom: -13px;
}
}
/*----/----promo video scroll*/
/*contact panel*/
* {
font-family: "helvetica";
font-weight: normal;
font-size: 1em;
}
#wrapper {
width: 100%;
padding: 30px 20px;
text-align: center;
box-sizing: border-box;
color: #adadad;
background: #ededed;
font-size:.8em;
letter-spacing:0.05em;
border-top: 0.5px solid rgba(0,0,0,.2);
}
[value*='Contact'], .module fieldset [type="submit"] [id="changetext"] {
appearance: none;
width:120px;
height:50px;
font-size:1.05em;
background: transparent;
color: #e6e8eb;
border:none;
text-align: center;
letter-spacing:0.15em;
text-transform:uppercase;
transition: color 0.5s ease;
outline:none;
border:none;
box-shadow: rgba(30, 22, 54, 0.4) 0 0px 0px 2px inset;
}
[value*='Contact'], .module fieldset [type="submit"] [id="changetext"]:hover {
color: #464c4c;
cursor:pointer;
transition: color 0.5s ease;
}
.module {
width: 100%;
margin: 1rem auto;
padding: 1rem;
}
.module fieldset {
overflow: hidden;
border: none;
}
.module fieldset [type="text"] {
display: block;
margin: 0 auto;
width: 80%;
border: 0;
border-bottom: 1px solid rgba(0,0,0,.2);
line-height: 20px;
margin-bottom: 10px;
font-size: 1em;
background: transparent;
color: rgba(0,0,0,.4);
width: 50%;
padding: 0.5rem;
}
.single {
height: 25px;
}
.module fieldset textarea {
display: block;
width: 100%;
padding: 1rem;
height: 125px;
}
/*----/----contact form*/
/*social panel*/
.followcontainer {
text-align: center;
background: #ededed;
}
.follow {
left: 50%;
display: inline-block;
width: 175px;
text-align: center;
padding-top: 2em;
padding-bottom: 4em;
color: #adadad;
background: #ededed;
font-size:.8em;
letter-spacing:0.05em;
}
.followcopywright {
left: 50%;
display: inline-block;
text-align: center;
padding-top: 2em;
padding-bottom: 4em;
color: #adadad;
background: #ededed;
font-size:.8em;
letter-spacing:0.05em;
}
/*social icons*/
.social-buttons {
height: 45px;
font-size: 0;
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
background: #ededed;
}
.social-button {
display: inline-block;
background-color: #ededed;
width: 45px;
height: 45px;
line-height: 45px;
margin: 0 10px;
text-align: center;
position: relative;
overflow: hidden;
opacity: .99;
border-radius: 50%;
box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.05);
-webkit-transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
}
.social-button:before {
content: '';
background-color: #000;
width: 120%;
height: 120%;
position: absolute;
top: 90%;
left: -110%;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
}
.social-button .fa {
font-size: 38px;
vertical-align: middle;
-webkit-transform: scale(0.8);
-ms-transform: scale(0.8);
transform: scale(0.8);
-webkit-transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
}
.social-button.facebook:before {
background-color: #3B5998;
}
.social-button.facebook .fa {
color: #3B5998;
}
.social-button.twitter:before {
background-color: #3CF;
}
.social-button.twitter .fa {
color: #3CF;
}
.social-button.google:before {
background-color: #DC4A38;
}
.social-button.google .fa {
color: #DC4A38;
}
.social-button.dribbble:before {
background-color: #F26798;
}
.social-button.dribbble .fa {
color: #F26798;
}
.social-button.skype:before {
background-color: #00AFF0;
}
.social-button.skype .fa {
color: #00AFF0;
}
.social-button:focus:before, .social-button:hover:before {
top: -10%;
left: -10%;
}
.social-button:focus .fa, .social-button:hover .fa {
color: #fff;
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
/*----/----social panel*/
/*footer*/
footer {
float: left;
display: inline-block;
text-align: center;
background: 232,232,232,0;
border-top: 1px solid rgba(0,0,0,.2);
}
/*----/----footer*/
/****landscape****/
#media (min-width: 850px) {
}
/*----/----Landscape*/
HTML:
<div class="header">
<div class="navbar">
<a href="" class="in" style="display: inline-block;">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 155.2 144" style="enable-background:new 0 0 155.2 144;" xml:space="preserve">
<path style="fill:#545454;" d="M42.7,122.7H21.3V54h21.4V122.7z M32,44.6c-6.8,0-12.4-5.6-12.4-12.4c0-6.8,5.5-12.4,12.4-12.4
c6.8,0,12.4,5.5,12.4,12.4C44.4,39,38.9,44.6,32,44.6z M122.7,122.7h-21.3V89.3c0-8-0.1-18.2-11.1-18.2c-11.1,0-12.8,8.7-12.8,17.6
v34H56.1V54h20.5v9.4h0.3c2.8-5.4,9.8-11.1,20.2-11.1c21.6,0,25.6,14.2,25.6,32.7V122.7z"/>
<g>
<path style="fill:#FFFFFF;" d="M151.9,120c0.7-0.1,1-0.5,1-1.1c0-0.8-0.5-1.1-1.4-1.1H150v4h0.6V120h0.7l0,0l1.1,1.7h0.6L151.9,120
L151.9,120z M151.3,119.6h-0.7v-1.4h0.9c0.4,0,0.9,0.1,0.9,0.6C152.4,119.5,151.9,119.6,151.3,119.6z"/>
<path style="fill:#FFFFFF;" d="M151.3,116c-2.1,0-3.8,1.7-3.8,3.8c0,2.1,1.7,3.8,3.8,3.8c2.1,0,3.8-1.7,3.8-3.8
C155.2,117.6,153.5,116,151.3,116z M151.3,123.1c-1.8,0-3.3-1.4-3.3-3.3c0-1.9,1.4-3.3,3.3-3.3c1.8,0,3.3,1.4,3.3,3.3
C154.6,121.7,153.2,123.1,151.3,123.1z"/>
</g>
</svg>
</a>
Logo
<a id="toggle-menu">
<div>
<span class="top"></span>
<span class="middle"></span>
<span class="bottom"></span>
</div>
</a>
<div class="nav">
<div id="navigation">
<ul>
<li class="navlist">Home</li>
<li class="navlist">About</li>
<li class="navlist">Work</li>
<li class="navlist">Contact</li>
</ul>
</div>
<div id="navpromo">
<ul>
<li class="seemore">Want to see more? Check out my instagram!</li>
</li><input type='submit' id="instagram" value="instagram"> </li>
</ul>
</div>
</div>
</div>
</div>
<div class="maincontent">
<div class="panel" id="panel1">
<div id="hero">
</div>
<div id="scroll">
<span class="arrow-bounce">↓</span>
</div>
</div>
<div class="panel" id="panel2">
<div class="inner">
Work Title 1
</div>
</div>
<div class="panel" id="panel3">
<div class="inner">
Work Title 2
</div>
</div>
<div class="panel" id="panel4">
<div class="inner">
Work Title 3
</div>
</div>
<div class="panel" id="panel5">
<div class="inner">
Work Title 4
</div>
</div>
<div class="panel" id="panel6">
<div class="inner">
Work Title 5
</div>
</div>
<div class="panel" id="panel7">
<div class="inner">
Work Title 6
</div>
</div>
<div id='wrapper'>
<input type='submit' value='Contact' id="changetext">
<div class='module' id='measure'>
<fieldset>
<legend></legend>
<input class="single" type='text' placeholder='Name' />
<input class="single" type='text' placeholder='Email' />
<input class="single" type='text' placeholder='Phone' />
<textarea class="message" type='text' placeholder='Message' ></textarea>
<input type='submit' id="send">
</fieldset>
</div>
</div>
<div class="followcontainer">
<div class="follow"> <p>I'd love to hear from you.</p>Drop me a line at #email.com.Boost my ego with a Facebook like.And please stalk me on Instagram #instagram.</div>
</div>
<div class="social-buttons">
<i class="fa fa-facebook"></i>
<i class="fa fa-twitter"></i>
<i class="fa fa-google"></i>
<i class="fa fa-dribbble"></i>
<i class="fa fa-skype"></i>
</div>
<div class="followcontainer">
<div class="followcopywright">© Copywright 2015</div>
</div>
When displaying li items inline, you must set the CSS style to the li directly, not to the whole list.
Example:
.nav li{
display: inline-block;
}

CSS Border-Line won't display 100% width

I have placed a border-top in the CSS for #navpromo, however the border line will not display at full 100% width and is aligning to the right with space to the left of the page instead no matter what I try?
CSS:
/*global styles*/
body {
width: 100%;
margin: 0;
list-style: none;
text-decoration: none;
font-size:1.05em;
font-family: Helvetica Neue, Helvetica, Arial, Sans-serif;
}
a{
appearance: none;
font-size:1.05em;
font-family: Helvetica Neue, Helvetica, Arial, Sans-serif;
background:transparent;
color: #000000;
border:none;
letter-spacing:0.15em;
text-transform:uppercase;
transition: color 0.5s ease;
list-style: none;
text-decoration: none;
}
a:focus, a:hover {
color: #e6e8eb;
cursor:pointer;
transition: color 0.5s ease;
}
a:active {
color: #484747;
}
/*----/----global styles*/
/*navigation icon*/
#toggle-menu {
float:right;
display: block;
width: 15px;
height: 15px;
padding: 20px;
}
#toggle-menu div {
width: 15px;
height: 15px;
position: relative;
}
#toggle-menu span {
display: block;
width: 15px;
height: 3px;
background: #545454;
position: absolute;
-webkit-transition: -webkit-transform 0.2s ease-in-out, top 0.2s ease-in-out 0.2s, opacity 0.2s ease-in-out 0.2s;
-moz-transition: -moz-transform 0.2s ease-in-out, top 0.2s ease-in-out 0.2s, opacity 0.2s ease-in-out 0.2s;
transition: transform 0.2s ease-in-out, top 0.2s ease-in-out 0.2s, opacity 0.2s ease-in-out 0.2s;
-webkit-transform-origin: center;
-moz-transform-origin: center;
transform-origin: center;
}
#toggle-menu span.top {
top: 0px;
}
#toggle-menu span.middle {
top: 6px;
}
#toggle-menu span.bottom {
top: 12px;
}
/*----/----navigation icon*/
/*navigation icon animation*/
#toggle-menu.menu-is-active span {
-webkit-transition: -webkit-transform 0.2s ease-in-out 0.2s, top 0.2s ease-in-out, opacity 0.2s ease-in-out;
-moz-transition: -moz-transform 0.2s ease-in-out 0.2s, top 0.2s ease-in-out, opacity 0.2s ease-in-out;
transition: transform 0.2s ease-in-out 0.2s, top 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
#toggle-menu.menu-is-active span.top, #toggle-menu.menu-is-active span.middle {
top: 6px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
}
#toggle-menu.menu-is-active span.middle {
opacity: 0;
}
#toggle-menu.menu-is-active span.bottom {
top: 6px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg);
}
/*----/----navigation icon animation*/
/*Nav Bar*/
.header {
border-bottom: 0.5px solid rgba(0,0,0,.2);
background: #ffffff;
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 99999;
}
.nav {
position: fixed;
width: 100%;
text-align: center;
display: inline;
background-color: #ffffff;
left: 0;
top: 39px;
border-bottom: 0.5px solid rgba(0,0,0,.2);
border-top: 0.5px solid rgba(0,0,0,.2);
cursor: pointer;
color: #545454;
font-size:.8em;
letter-spacing:0.05em;
}
.nav > li {
left: 0;
padding-top: 70px;
padding-bottom: 70px;
display: inline-block;
padding-right: 60px;
color: #545454;
}
.seemore {
display: inline-block;
padding-right: 20px;
}
#navpromo{
border-top: 0.5px solid rgba(0,0,0,.2);
padding-top: 40px;
padding-bottom: 40px;
}
#instagram{
display: inline-block;
appearance: none;
width:120px;
height:50px;
font-size:1.05em;
background: transparent;
color: #464c4c;
border:none;
text-align: center;
letter-spacing:0.15em;
text-transform:uppercase;
transition: color 0.5s ease;
outline:none;
border:none;
box-shadow: rgba(30, 22, 54, 0.4) 0 0px 0px 2px inset;
}
#instagram:hover {
color: #e6e8eb;
cursor:pointer;
transition: color 0.5s ease;
}
.nav > li:hover {
left: 0;
padding-top: 0.6em;
padding-bottom: 1em;
cursor:pointer;
}
/*----/----Nav Bar*/
/*in*/
.in {
float:left;
display: inline-block;
width: 25px;
height: 25px;
padding: 15px;
cursor: pointer;
color: #545454;
font-size:.8em;
letter-spacing:0.05em;
border-top: 0.5px solid rgba(0,0,0,.2);
}
/*----/----in*/
/*logo*/
.logo {
position: absolute;
left: 50%;
display: inline-block;
width: 15px;
height: 15px;
padding: 18px;
cursor: pointer;
color: #545454;
font-size:.8em;
letter-spacing:0.05em;
}
/*----/----logo*/
/*Panels*/
.panel {
width: 100%;
color: #adadad;
height: 15em;
padding: 7em;
box-sizing: border-box;
background: #ffffff;
border-top: 0.5px solid rgba(0,0,0,.2);
text-align: center;
}
#panel1 {
background: #b8b8b8;
height: 30em;
}
.links{
color: #adadad;
}
/*----/----Panels*/
/*promo video scroll*/
#hero, section {
padding: 150px;
}
#scroll {
color: white;
font-size: 26px;
line-height: 26px;
cursor: pointer;
position: absolute;
left:50%;
-webkit-transition: -webkit-transform 0.6s ease;
-moz-transition: -moz-transform 0.6s ease;
transition: transform 0.6s ease;
}
#scroll.clicked {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
}
#scroll.rotate {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-o-transform: rotate(180deg);
-ms-transform: rotate(3180deg);
}
#scroll span {
position: relative;
bottom: -10px;
}
.arrow-bounce {
-webkit-animation: arrow 1s infinite;
-moz-animation: arrow 1s infinite;
-o-animation: arrow 1s infinite;
animation: arrow 1s infinite;
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
#-webkit-keyframes arrow {
0% {
bottom: -13px;
}
50% {
bottom: -8px;
}
100% {
bottom: -13px;
}
}
#-moz-keyframes arrow {
0% {
bottom: -13px;
}
50% {
bottom: -8px;
}
100% {
bottom: -13px;
}
}
#keyframes arrow {
0% {
bottom: -13px;
}
50% {
bottom: -8px;
}
100% {
bottom: -13px;
}
}
/*----/----promo video scroll*/
/*contact panel*/
* {
font-family: "helvetica";
font-weight: normal;
font-size: 1em;
}
#wrapper {
width: 100%;
padding: 30px 20px;
text-align: center;
box-sizing: border-box;
color: #adadad;
background: #ededed;
font-size:.8em;
letter-spacing:0.05em;
border-top: 0.5px solid rgba(0,0,0,.2);
}
[value*='Contact'], .module fieldset [type="submit"] [id="changetext"] {
appearance: none;
width:120px;
height:50px;
font-size:1.05em;
background: transparent;
color: #e6e8eb;
border:none;
text-align: center;
letter-spacing:0.15em;
text-transform:uppercase;
transition: color 0.5s ease;
outline:none;
border:none;
box-shadow: rgba(30, 22, 54, 0.4) 0 0px 0px 2px inset;
}
[value*='Contact'], .module fieldset [type="submit"] [id="changetext"]:hover {
color: #464c4c;
cursor:pointer;
transition: color 0.5s ease;
}
.module {
width: 100%;
margin: 1rem auto;
padding: 1rem;
}
.module fieldset {
overflow: hidden;
border: none;
}
.module fieldset [type="text"] {
display: block;
margin: 0 auto;
width: 80%;
border: 0;
border-bottom: 1px solid rgba(0,0,0,.2);
line-height: 20px;
margin-bottom: 10px;
font-size: 1em;
background: transparent;
color: rgba(0,0,0,.4);
width: 50%;
padding: 0.5rem;
}
.single {
height: 25px;
}
.module fieldset textarea {
display: block;
width: 100%;
padding: 1rem;
height: 125px;
}
/*----/----contact form*/
/*social panel*/
.followcontainer {
text-align: center;
background: #ededed;
}
.follow {
left: 50%;
display: inline-block;
width: 175px;
text-align: center;
padding-top: 2em;
padding-bottom: 4em;
color: #adadad;
background: #ededed;
font-size:.8em;
letter-spacing:0.05em;
}
.followcopywright {
left: 50%;
display: inline-block;
text-align: center;
padding-top: 2em;
padding-bottom: 4em;
color: #adadad;
background: #ededed;
font-size:.8em;
letter-spacing:0.05em;
}
/*social icons*/
.social-buttons {
height: 45px;
font-size: 0;
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
background: #ededed;
}
.social-button {
display: inline-block;
background-color: #ededed;
width: 45px;
height: 45px;
line-height: 45px;
margin: 0 10px;
text-align: center;
position: relative;
overflow: hidden;
opacity: .99;
border-radius: 50%;
box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.05);
-webkit-transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
}
.social-button:before {
content: '';
background-color: #000;
width: 120%;
height: 120%;
position: absolute;
top: 90%;
left: -110%;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
}
.social-button .fa {
font-size: 38px;
vertical-align: middle;
-webkit-transform: scale(0.8);
-ms-transform: scale(0.8);
transform: scale(0.8);
-webkit-transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
transition: all 0.35s cubic-bezier(0.31, -0.105, 0.43, 1.59);
}
.social-button.facebook:before {
background-color: #3B5998;
}
.social-button.facebook .fa {
color: #3B5998;
}
.social-button.twitter:before {
background-color: #3CF;
}
.social-button.twitter .fa {
color: #3CF;
}
.social-button.google:before {
background-color: #DC4A38;
}
.social-button.google .fa {
color: #DC4A38;
}
.social-button.dribbble:before {
background-color: #F26798;
}
.social-button.dribbble .fa {
color: #F26798;
}
.social-button.skype:before {
background-color: #00AFF0;
}
.social-button.skype .fa {
color: #00AFF0;
}
.social-button:focus:before, .social-button:hover:before {
top: -10%;
left: -10%;
}
.social-button:focus .fa, .social-button:hover .fa {
color: #fff;
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
/*----/----social panel*/
/*footer*/
footer {
float: left;
display: inline-block;
text-align: center;
background: 232,232,232,0;
border-top: 1px solid rgba(0,0,0,.2);
}
/*----/----footer*/
/****landscape****/
#media (min-width: 850px) {
}
/*----/----Landscape*/
HTML:
<div class="header">
<div class="navbar">
<a href="" class="in" style="display: inline-block;">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 155.2 144" style="enable-background:new 0 0 155.2 144;" xml:space="preserve">
<path style="fill:#545454;" d="M42.7,122.7H21.3V54h21.4V122.7z M32,44.6c-6.8,0-12.4-5.6-12.4-12.4c0-6.8,5.5-12.4,12.4-12.4
c6.8,0,12.4,5.5,12.4,12.4C44.4,39,38.9,44.6,32,44.6z M122.7,122.7h-21.3V89.3c0-8-0.1-18.2-11.1-18.2c-11.1,0-12.8,8.7-12.8,17.6
v34H56.1V54h20.5v9.4h0.3c2.8-5.4,9.8-11.1,20.2-11.1c21.6,0,25.6,14.2,25.6,32.7V122.7z"/>
<g>
<path style="fill:#FFFFFF;" d="M151.9,120c0.7-0.1,1-0.5,1-1.1c0-0.8-0.5-1.1-1.4-1.1H150v4h0.6V120h0.7l0,0l1.1,1.7h0.6L151.9,120
L151.9,120z M151.3,119.6h-0.7v-1.4h0.9c0.4,0,0.9,0.1,0.9,0.6C152.4,119.5,151.9,119.6,151.3,119.6z"/>
<path style="fill:#FFFFFF;" d="M151.3,116c-2.1,0-3.8,1.7-3.8,3.8c0,2.1,1.7,3.8,3.8,3.8c2.1,0,3.8-1.7,3.8-3.8
C155.2,117.6,153.5,116,151.3,116z M151.3,123.1c-1.8,0-3.3-1.4-3.3-3.3c0-1.9,1.4-3.3,3.3-3.3c1.8,0,3.3,1.4,3.3,3.3
C154.6,121.7,153.2,123.1,151.3,123.1z"/>
</g>
</svg>
</a>
Logo
<a id="toggle-menu">
<div>
<span class="top"></span>
<span class="middle"></span>
<span class="bottom"></span>
</div>
</a>
<ul class="nav">
<li>Home</li>
<li>About</li>
<li>Work</li>
<li>Contact</li>
<div id="navpromo">
<li class="seemore">Want to see more? Check out my instagram!</li>
</li><input type='submit' id="instagram" value="instagram"> </li>
</div>
</ul>
</div>
</div>
<div class="maincontent">
<div class="panel" id="panel1">
<div id="hero">
</div>
<div id="scroll">
<span class="arrow-bounce">↓</span>
</div>
</div>
<div class="panel" id="panel2">
<div class="inner">
Work Title 1
</div>
</div>
<div class="panel" id="panel3">
<div class="inner">
Work Title 2
</div>
</div>
<div class="panel" id="panel4">
<div class="inner">
Work Title 3
</div>
</div>
<div class="panel" id="panel5">
<div class="inner">
Work Title 4
</div>
</div>
<div class="panel" id="panel6">
<div class="inner">
Work Title 5
</div>
</div>
<div class="panel" id="panel7">
<div class="inner">
Work Title 6
</div>
</div>
<div id='wrapper'>
<input type='submit' value='Contact' id="changetext">
<div class='module' id='measure'>
<fieldset>
<legend></legend>
<input class="single" type='text' placeholder='Name' />
<input class="single" type='text' placeholder='Email' />
<input class="single" type='text' placeholder='Phone' />
<textarea class="message" type='text' placeholder='Message' ></textarea>
<input type='submit' id="send">
</fieldset>
</div>
</div>
<div class="followcontainer">
<div class="follow"> <p>I'd love to hear from you.</p>Drop me a line at #email.com.Boost my ego with a Facebook like.And please stalk me on Instagram #instagram.</div>
</div>
<div class="social-buttons">
<i class="fa fa-facebook"></i>
<i class="fa fa-twitter"></i>
<i class="fa fa-google"></i>
<i class="fa fa-dribbble"></i>
<i class="fa fa-skype"></i>
</div>
<div class="followcontainer">
<div class="followcopywright">© Copywright 2015</div>
</div>
Change the following:
CSS:
.nav {
position: fixed;
width: 100%;
text-align: center;
display: inline;
background-color: #ffffff;
left:-40px;
top: 39px;
border-bottom: 0.5px solid rgba(0,0,0,.2);
border-top: 0.5px solid rgba(0,0,0,.2);
cursor: pointer;
color: #545454;
font-size:.8em;
letter-spacing:0.05em;
clear:both;
}
.nav > li:last-child{
width:100%;
display:block;
}
HTML
<ul class="nav">
<li>Home</li>
<li>About</li>
<li>Work</li>
<li>Contact</li>
<li>
<div id="navpromo">
<ul>
<li class="seemore">Want to see more? Check out my instagram!</li>
</li><input type='submit' id="instagram" value="instagram"> </li></ul>
</div>
</li>
</ul>
You can also remove the padding from the ul.nav by adding the following style to the .nav class.
padding-left:0;
All ul elements have a default padding.

How to make the <li> items next to each other?

For hours, I've been trying to put the li lists next to each other, but still couldn't make it.
JsFiddle: https://jsfiddle.net/rsp3gsg3/
body {
background-image: url("http://images.virtualworldsland.com/blog/2322/796.jpg");
background-attachment: fixed;
}
img {
box-shadow: 0px 3px 12px 2px #000;
-webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
}
img:hover {
-webkit-transform: rotate(-7deg);
-moz-transform: rotate(-7deg);
-o-transform: rotate(-7deg);
}
#menu {
width: 200px;
height: 200px;
background: white;
box-shadow: 0px 3px 12px 2px #000;
}
.ulinlineblock {
display: inline-block;
list-style-type: none;
}
<div align="center">
<img src="Header.png" />
<div id="menu">
<ul class="ulinlineblock">
<li>Home</li>
<li>Blog</li>
<li>Wiki</li>
<li>Trivia</li>
</ul>
</div>
</div>
You should set the li to inline block.
.ulinlineblock {
text-align: center;
list-style: none;
padding: 0;
}
.ulinlineblock li {
display: inline-block;
vertical-align: top;
}
https://jsfiddle.net/rsp3gsg3/4/
body {
background-image: url("http://images.virtualworldsland.com/blog/2322/796.jpg");
background-attachment: fixed;
}
img {
box-shadow: 0px 3px 12px 2px #000;
-webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
}
img:hover {
-webkit-transform: rotate(-7deg);
-moz-transform: rotate(-7deg);
-o-transform: rotate(-7deg);
}
#menu {
width: 200px;
height: 200px;
background: white;
box-shadow: 0px 3px 12px 2px #000;
}
.ulinlineblock {
text-align: center;
list-style: none;
padding: 0;
}
.ulinlineblock li {
display: inline-block;
vertical-align: top;
}
<div align="center">
<img src="Header.png" />
<div id="menu">
<ul class="ulinlineblock">
<li>Home</li>
<li>Blog</li>
<li>Wiki</li>
<li>Trivia</li>
</ul>
</div>
</div>

Animation not working in FF and IE..?

I have applied certain animations for drop down menu.. It works fine in Chrome but not in FF n IE.. Will u please let me know where I am going wrong..
Here is the JS fiddle what I am upto now:
Demo
here is the HTML part..
<div id="back">
<div class="wrapper">
<div class="container">
<ul id="menu" class="menu">
<li id="l1" runat="server" class="active"><a class="link1" href="Home.aspx" runat="server" id="a1">Home</a></li>
<li id="l2" runat="server"><a runat="server" class="link1" href="?id=History" id="a2">About MCB<img src="Images/Other%20Images/dropdown.png" style="position:absolute;margin-right:0px; top: -3px; left: 138px;"/></a>
<ul>
<li id="l21" runat="server"><a runat="server" class="link1" href="?id=Members" id="a21">Member details</a></li>
<li id="l22" runat="server"><a runat="server" class="link1" style="width:116px;" href="?id=History" id="a22">History</a></li>
</ul>
</li>
<li id="l3" runat="server"><a runat="server" href="?id=Photos" class="link1" id="a3">Gallery<img src="Images/Other%20Images/dropdown.png" style="position:absolute;top: -3px; float:right;right:-8px; z-index:1000;"/></a>
<ul id="gl">
<li id="L31" runat="server"><a style="width:inherit" runat="server" class="link1" href="?id=Photos" id="a15">Photos</a></li>
<li id="L32" runat="server"><a style="width:inherit" runat="server" class="link1" href="?id=Videos" id="a16">Videos</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
and here is the Css:
.wrapper {
width: 100%;
height: 40px;
background : #464646;
background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69)));
background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69));
border-top: 2px ridge #939393;
position: relative;
top:19px;
margin-bottom: 30px;
}
ul {
margin: 0;
padding: 0;
}
ul.menu {
height: 30px;
border-left: 1px solid rgba(0,0,0,0.3);
border-right: 1px solid rgba(255,255,255,0.3);
float:left;
position:relative;
}
ul.menu li {
list-style: none;
float:left;
height: 39px;
display:inline-block;
text-align: center;
position:relative;
background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) );
background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);
}
ul.menu li ul li
{
display: block;
float: none;
clear: left;
}
.menu li:not(:hover) ul {
display: none;
}
#-webkit-keyframes fadeInOut{
from {
-webkit-transform: rotate(0deg);
font-size:0px;
}
to {
-webkit-transform: rotate(1440deg);
font-size:15px;
}
}
#-moz-keyframes fadeInOut {
from {
-webkit-transform: rotate(0deg);
font-size:0px;
}
to {
-webkit-transform: rotate(1440deg);
font-size:15px;
}
}
#-o-keyframes fadeInOut {
from {
-webkit-transform: rotate(0deg);
font-size:0px;
}
to {
-webkit-transform: rotate(1440deg);
font-size:15px;
}
}
#keyframes fadeInOut {
from {
-webkit-transform: rotate(0deg);
font-size:0px;
}
to {
-webkit-transform: rotate(1440deg);
font-size:15px;
}
}
.menu li:hover ul {
display: inline-block;
-webkit-animation: fadeInOut 1s;
-moz-animation: fadeInOut 1s;
-o-animation: fadeInOut 1s;
animation: fadeInOut 1s;
}
ul.menu li ul li a
{
clear: left;
line-break: strict;
display:inline-block;
position:relative;
font-size:18px;
}
.link1 {
display: block;
text-decoration: none;
font-family:'Adobe Garamond Pro';
color: White;
font-size: 22px;
font-weight:bolder;
padding: 0 30px;
border-left: 1px solid rgba(255,255,255,0.1);
border-right: 1px solid rgba(0,0,0,0.1);
text-align: center;
line-height: 39px;
background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69)));
background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69));
-webkit-transition-property: background;
-moz-transition-property: background;
transition-property:background;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.link1:hover {
background: transparent none;
}
ul li.active .link1{
background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) );
color:black;
background:-o-linear-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);
background:linear-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);
background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);
}
Please let me know where I am going wrong...
#-moz-keyframes fadeInOut { from {
-webkit-transform: rotate(0deg);
font-size:0px;
}
to {
-webkit-transform: rotate(1440deg);
font-size:15px;
}
}
You should replace those -webkit- with -moz-.