/*mynew_navbar start */ /* Place the navbar at the bottom of the page */ .mynew_navbar { background-color: #8ea9db; overflow: hidden; position: relative; bottom: 0; width: 80%; font-weight:700; } /* Style the links inside the navigation bar */ .mynew_navbar a { float: left; display: block; color: white; text-align: center; padding: 12px 15px; text-decoration: none; } /* Change the color of links on hover */ .mynew_navbar a:hover { background-color: #b4c6e7; color: #fff; } /* Add a dark blue background color to the active link */ .mynew_navbar a.active { background-color: #4472c4; color: white; } /* Hide the link that should open and close the mybottomnavbar on small screens */ .mynew_navbar .icon { display: none; } /* When the screen is less than 600 pixels wide, hide all links, except for the first one (Home). Show the link that contains should open and close the navbar (.icon) */ @media screen and (max-width: 600px) { /*.mynew_navbar {margin-left:1%;}*/ .mynew_navbar a:not(:last-child) {display: none;} /* first-child yerine last-child yaptim*/ .mynew_navbar a.icon { background-color: #8ea9db; float: right; display: block; margin-right:10%; background-color: #4472c4; border-radius:4px; color:#fff; padding: 10px 15px; } } /* The responsive class is added to the navbar with JavaScript when the user clicks on the icon. This class makes the navbar look good on small screens (display the links vertically instead of horizontally) */ @media screen and (max-width: 600px) { .mynew_navbar.responsive a.icon { position: absolute; right: 0; bottom: 0; margin-right:10%; } .mynew_navbar.responsive a { float: none; display: block; text-align: left; /* margin-right:30%;*/ } /*Make the icon hover background light blue when hover over with mouse*/ .mynew_navbar a.icon:hover { background-color: #b4c6e7; } } /*mynew_navbar end */ /* Place the navbar at the bottom of the page */ .mybottomnavbar { overflow: hidden; position: relative; bottom: 0; width: 80%; font-weight:700; margin-left:20%; } /* Style the links inside the navigation bar */ .mybottomnavbar a { float: left; display: block; color: white; text-align: center; padding: 12px 15px; text-decoration: none; } /* Change the color of links on hover */ .mybottomnavbar a:hover { background-color: #b4c6e7; color: #fff; } /* Add a dark blue background color to the active link */ .mybottomnavbar a.active { background-color: #4472c4; color: white; } /* Hide the link that should open and close the mybottomnavbar on small screens */ .mybottomnavbar .icon { display: none; } /* When the screen is less than 600 pixels wide, hide all links, except for the first one (Home). Show the link that contains should open and close the navbar (.icon) */ @media screen and (max-width: 600px) { .mybottomnavbar {margin-left:1%;} .mybottomnavbar a:not(:last-child) {display: none;} /* first-child yerine last-child*/ .mybottomnavbar a.icon { float: right; display: block; margin-right:10%; background-color: #4472c4; border-radius:4px; color:#fff; padding: 10px 15px; } } /* The responsive class is added to the navbar with JavaScript when the user clicks on the icon. This class makes the navbar look good on small screens (display the links vertically instead of horizontally) */ @media screen and (max-width: 600px) { .mybottomnavbar.responsive a.icon { position: absolute; right: 0; bottom: 0; margin-right:10%; } .mybottomnavbar.responsive a { float: none; display: block; text-align: left; // margin-right:30%; } /*Make the icon hover background light blue when hover over with mouse*/ .mybottomnavbar a.icon:hover { background-color: #b4c6e7; } }