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-.
Related
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ãs</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ãs</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).
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ãs</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
I working with sociable on hover background-color slide down from top to bottom I wrote CSS but I don't know why it's not working.
ul.socials {
display: flex;
flex-direction: row;
list-style-type: none;
font-size: 20px;
}
.socials li {
padding: 12px;
}
.socials li.facebook {
background-size: 100% 200%;
background-image: linear-gradient(to bottom, #eaeaea 50%, #3B5998 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
}
.socials li.facebok:hover {
background-position: 0 -100%;
color: #ffffff;
}
i.fa.fa-facebook {
color: #3B5998;
}
i.fa.fa-twitter {
color: #00A0D1;
}
i.fa.fa-dribbble {
color: #ea4c88;
}
<script src="https://use.fontawesome.com/a2e210f715.js"></script>
<div class="social-wrap">
<ul class="socials">
<li class="facebook"><i class="fa fa-facebook"></i></li>
<li class="twitter"><i class="fa fa-twitter"></i></li>
<li class="dribbble"><i class="fa fa-dribbble"></i></li>
</ul>
</div>
Here is the working code for your reference. I made sliding effect working for all 3 icons.
ul.socials {
display: flex;
flex-direction: row;
list-style-type: none;
font-size: 20px;
}
.socials li {
padding: 12px;
}
.socials li.facebook {
background-size: 100% 200%;
background-image: linear-gradient(to bottom, #eaeaea 50%, #3B5998 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
}
.socials li.twitter {
background-size: 100% 200%;
background-image: linear-gradient(to bottom, #eaeaea 50%, #00A0D1 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
}
.socials li.dribbble {
background-size: 100% 200%;
background-image: linear-gradient(to bottom, #eaeaea 50%, #ea4c88 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
}
.socials li:hover {
background-position: 0 -100%;
color: #ffffff;
}
i.fa.fa-facebook {
color: #3B5998;
}
i.fa.fa-twitter {
color: #00A0D1;
}
i.fa.fa-dribbble {
color: #ea4c88;
}
.socials li:hover a i {
color: #fff;
}
<script src="https://use.fontawesome.com/a2e210f715.js"></script>
<div class="social-wrap">
<ul class="socials">
<li class="facebook"><i class="fa fa-facebook"></i></li>
<li class="twitter"><i class="fa fa-twitter"></i></li>
<li class="dribbble"><i class="fa fa-dribbble"></i></li>
</ul>
</div>
A typo mistake : use .socials li.facebook:hover instead of .socials li.facebok:hover
ul.socials {
display: flex;
flex-direction: row;
list-style-type: none;
font-size: 20px;
}
.socials li {
padding: 12px;
}
.socials li.facebook {
background-size: 100% 200%;
background-image: linear-gradient(to bottom, #eaeaea 50%, #3B5998 50%);
-webkit-transition: background-position 0.5s;
-moz-transition: background-position 0.5s;
transition: background-position 0.5s;
}
.socials li.facebook:hover {
background-position: 0 -100%;
color: #ffffff;
}
i.fa.fa-facebook {
color: #3B5998;
}
i.fa.fa-twitter {
color: #00A0D1;
}
i.fa.fa-dribbble {
color: #ea4c88;
}
<script src="https://use.fontawesome.com/a2e210f715.js"></script>
<div class="social-wrap">
<ul class="socials">
<li class="facebook"><i class="fa fa-facebook"></i></li>
<li class="twitter"><i class="fa fa-twitter"></i></li>
<li class="dribbble"><i class="fa fa-dribbble"></i></li>
</ul>
</div>
I made this menu before i just started using bootstrap. The menu is generated from the database. The HTML output is shown below.
<ul id="nav">
<li value="1">Home</li>
<li value="2">
Portfolio
<ul class='Subs'>
<li value="5">Web Design</li>
<li value="6">Graphic Design</li>
<li value="7">Logo Design</li>
<li value="8">Blog Design</li>
</ul>
</li>
<li value="3">
Projects
<ul class='Subs'>
<li value="9">Project1</li>
<li value="10">Project2</li>
<li value="11">Project3</li>
<li value="12">Project4</li>
</ul>
</li>
<li value="4">
Contact
<ul class='Subs'>
<li value="13">Support</li>
<li value="14">Quote</li>
<li value="15">General Inquiry</li>
</ul>
</li>
<li value="16">kaas</li>
</ul>
Here is the CSS i use
#nav span {
display: none;
}
#nav, #nav ul {
list-style: none outside none;
margin: 0;
padding: 0;
z-index: 99;
}
#nav {
color-stop(0, #E3E3E3),
color-stop(0.5, white)
background-image: -o-linear-gradient(bottom, #E3E3E3 0%, white 100%);
background-image: -moz-linear-gradient(bottom, #E3E3E3 0%, white 100%);
background-image: -webkit-linear-gradient(bottom, #E3E3E3 0%, white 100%);
background-image: -ms-linear-gradient(bottom, #E3E3E3 0%, white 100%);
background-image: linear-gradient(to bottom, #E3E3E3 0%, white 100%);
border-bottom: 5px solid #333333;
float: left;
margin-left: 1%;
margin-right: 1%;
position: relative;
width: 98%;
}
#nav ul.subs {
color-stop(0, #E3E3E3),
color-stop(0.5, white)
background-color: -o-linear-gradient(bottom, white 0%, #E3E3E3 100%);
background-image: -moz-linear-gradient(bottom, white 0%, #E3E3E3 100%);
background-image: -webkit-linear-gradient(bottom, white 0%, #E3E3E3 100%);
background-image: -ms-linear-gradient(bottom, white 0%, #E3E3E3 100%);
background-image: linear-gradient(to bottom, white 0%, #E3E3E3 100%);
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
color: #333333;
display: none;
left: 0;
padding: 2%;
position: absolute;
top: 54px;
width: 96%;
}
#nav > li {
border-bottom: 5px solid transparent;
float: left;
margin-bottom: -5px;
text-align: left;
-moz-transition: all 300ms ease-in-out 0s;
-ms-transition: all 300ms ease-in-out 0s;
-o-transition: all 300ms ease-in-out 0s;
-webkit-transition: all 300ms ease-in-out 0s;
transition: all 300ms ease-in-out 0s;
}
#nav li{
display: block;
text-decoration: none;
-moz-transition: color 450ms ease-in-out 0s, background-color 450ms ease-in-out 0s;
-ms-transition: color 450ms ease-in-out 0s, background-color 450ms ease-in-out 0s;
-o-transition: color 450ms ease-in-out 0s, background-color 450ms ease-in-out 0s;
-webkit-transition: color 450ms ease-in-out 0s, background-color 450ms ease-in-out 0s;
transition: color 450ms ease-in-out 0s, background-color 450ms ease-in-out 0s;
white-space: normal;
}
#nav > li{
color: #333333;
display: block;
font-size: 1.3em;
line-height: 49px;
padding: 0 15px;
text-transform: uppercase;
}
#nav > li:hover, #nav :hover {
background-color: #F55856;
color: #FFFFFF;
cursor: pointer;
}
#nav li.active > li{
background-color: #333333;
color: #FFFFFF;
}
#nav li:hover ul.subs {
display: block;
}
#nav ul.subs > li {
display: inline-block;
float: none;
padding: 10px 1%;
vertical-align: top;
width: 33%;
}
#nav ul.subs > li{
color: #777777;
line-height: 20px;
}
#nav ul.subs > li{
font-size: 1.3em;
margin-bottom: 10px;
text-transform: uppercase;
}
#nav ul.subs > li{
float: none;
padding-left: 8px;
font-size: 0.8em;
margin: 0px;
padding: 5px;
-moz-transition: padding 150ms ease-out 0s;
-ms-transition: padding 150ms ease-out 0s;
-o-transition: padding 150ms ease-out 0s;
-webkit-transition: padding 150ms ease-out 0s;
transition: padding 150ms ease-out 0s;
}
#nav ul.subs > li li:hover {
padding-left: 15px;
}
#nav ul.subs > li:hover{
color: red;
cursor: pointer;
}
Without bootstrap it looks fabulous, so could anybody explain to me how this is happening and this can be fixed?
Thanks in advance
You put an uppercase letter at the beginning of the class Subs when it should actually be subs, which, if you check your CSS is a correct match.
DEMO JSFiddle
i'm having some trouble with animating a dropdown menu using css3. I need it to work with css3 and not jQuery or javascript. I've added all the rules neccessary but still the effect doesn't happen. Can anyone please help? Here is a fiddle of my code. Thank you.
http://jsfiddle.net/Zmr7u/6/
html code:
<header class="main-header">
<nav class="main-nav">
<ul class="top-nav">
<li>
home
<ul class="drop-down">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</li>
<li>
about
<ul class="drop-down">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</li>
<li>
products
<ul class="drop-down">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</li>
<li>
contacts
<ul class="drop-down">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</li>
</ul>
</nav>
</header>
css code:
nav.main-nav {
background: #333;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2f2f2f), to(#4f4f4f));
background-image: -webkit-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: -moz-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: -ms-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: -o-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: linear-gradient(top, #2f2f2f, #4f4f4f);
width: 100%;
}
.top-nav {
border-bottom: 2px solid #111;
height: 30px;
list-style-type: none;
margin: 0;
padding-left: 0;
width: 100%;
}
.top-nav li {
background: #333;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2f2f2f), to(#4f4f4f));
background-image: -webkit-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: -moz-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: -ms-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: -o-linear-gradient(top, #2f2f2f, #4f4f4f);
background-image: linear-gradient(top, #2f2f2f, #4f4f4f);
border-bottom: 2px solid #111;
border-right: 1px solid #555;
float: left;
font-size: 14px;
height: 20px;
padding-top: 10px;
position: relative;
text-align: center;
width: 150px;
}
.top-nav li ul.drop-down {
position: absolute;
top: 32px;
left: 0;
visibility: hidden;
display: none;
opacity: 0;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
-o-transition: opacity 0.3s;
transition: opacity 0.3s;
}
.top-nav li:hover ul.drop-down {
visibility: visible;
opacity: 1;
display: block;
}
.top-nav li .drop-down li {
height: 20px;
-webkit-transition: height 0.3s ease;
-moz-transition: height 0.3s ease;
-o-transition: height 0.3s ease;
transition: height 0.3s ease;
}
.top-nav li .drop-down li:hover {
height: 30px;
}
.top-nav li a {
color: #aaa;
padding-top: 5px;
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 25px;
text-decoration: none;
}
You can just use visibility without using display:
.top-nav li ul.drop-down {
list-style-type: none;
position: absolute;
top: 32px;
left: -40px;
visibility: hidden;
opacity: 0;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
-o-transition: opacity 0.3s;
transition: opacity 0.3s;
}
.top-nav li:hover ul.drop-down {
visibility: visible;
opacity: 1;
}
Demo.
You can use css animation when you want to increase opacity and make the element visible, like --
span {
display: none;
opacity: 0;
}
To make span visible
span {
display: block;
animation: visible 2s;
}
#keyframes visible {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
And if you're getting a bug when make animation less than 1s then use animation: visible 0.5s forwards;