.container-fluid { width: 100%; } .container { width: 90%; margin: 0px auto; } .container-in { margin: 0px auto; width: 90%; } .flex-row { display: flex; flex-wrap: wrap; } .flex-row-justify { justify-content: space-between } /* header starts here*/ .logo { width: 30%; } .logo a { display: block; } .logo a img { padding: 5px 0px 0px 0px; } .navbar { width: 70%; } .navbar ul { margin: 0; padding: 0; display: flex; } .navbar ul li { list-style: none; padding: 12px 0px; } .navbar ul li a { text-decoration: none; display: block; padding: 8px 25px; color: #fff; } .navbar ul li a.active, .navbar ul li a:hover { background: #6b0000; } .header-bg { background: #000; } /* header starts here*/ .bg-images { background: url(bg-image.jpg); background-attachment: fixed; } .set-contact-detal { justify-content: space-around; padding: 20px 0px; } .set-contact-detal a { background: #0d6efd; color: #fff; text-decoration: none; display: block; padding: 15px 30px; border-radius: 20px; } @media only screen and (max-width: 1024px) { .navbar ul li a { text-decoration: none; display: block; padding: 15px 11px; color: #fff; } .logo { width: 20%; } .navbar { width: 80%; } .navbar ul { justify-content: flex-end; } } @media only screen and (max-width: 600px) { .logo { width: 50%; margin: 0px auto; } .navbar { width: 100%; } .navbar ul li { padding: 0px 0px; } .navbar ul { flex-wrap: wrap; justify-content: center; } } @media only screen and (max-width: 480px) { .set-contact-detal { justify-content: space-between; padding: 9px 0px; } .set-contact-detal a { padding: 15px 20px; }