Chrome and Firefox responsive mode VS Phone responsive mode - html

Can someone explain to me why in Chrome responsive mode my web page looks good, and on the mobile it looks differently that I don't like.
And yes I used:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
in my HTML.
[Chrome responsive mode:] (https://i.stack.imgur.com/PIkBo.png)
Phone responsive mode:
This my CSS that im using to make my website responsive:
#media screen and (min-width: 320px) and (max-width: 480px){
html,
body {
overflow-x: hidden !important;
}
body {
position: relative;
background-color: rgb(100, 100, 195);
background-size: cover;
background-repeat: no-repeat;
z-index: 1;
}
#video-background {
display: none;
z-index: -1;
}
.message-top {
font-size: 1.2em;
top: 15vh;
font-family: 'San Francisco';
font-weight: bolder;
left: 22vh;
}
.coming_soon {
top: 25vh;
}
.message-bottom {
display: none;
}
#analog-clock {
position: absolute;
top: 50vh;
left: 47%;
transform: translate(-50%, -50%);
width: 90vw;
height: 90vw;
opacity: initial;
}
#clock-dial {
width: 70vw;
height: 70vw;
}
#hour-hand {
width: 0.18vh;
height: 20%;
top: 28%;
left: 49.5%;
}
#sec-hand {
width: 0.5%;
height: 30%;
top: 16.5%;
left: 49%;
}
.logo-bg {
position: absolute;
width: 50%;
top: -5%;
left: -5%;
}
.logo-bg img {
position: absolute;
width: 20vh;
top: -3%;
left: -3%;
}
#social-sidebar {
visibility: hidden;
}
.scroll-button {
top: 80%;
max-width: min-content;
}
.bg-below-video {
position: relative;
top: auto;
left: auto;
width: 100%;
height: auto;
min-width: auto;
min-height: auto;
z-index: 1;
}
#home-button {
top: -45vh !important;
position: relative;
right: -24vh;
font-size: 0.8em;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
bottom: 500%;
font-size: 0.8em;
color: black;
}
#subscribe-button-x {
top: -45vh !important;
position: relative;
right: -24vh;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
bottom: 500%;
font-size: 0.8em;
color: black;
}
#subscribe-button-x {
padding: initial;
background-color: initial;
text-decoration: initial;
z-index: 1;
transition: initial;
}
#home-button:hover,
#subscribe-button-x:hover {
pointer-events: none;
transform: none;
}
}

Related

Why does the text not appear in the div that I place it in?

Im making a pricing page for my website but as I'm making my website responsive, (only when the page is less than 110 pixels wide),
* {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
}
#pricing {
height: 95vh;
width: 100vw;
background-color: #E5EDFB;
margin-top: none;
}
h1 {
color: #0E0A24;
padding-left: 8.75%;
padding-top: 5vh;
font-size: 300%;
}
h2 {
color: #0E0A24;
text-align: center;
margin-top: 4vh;
font-weight: 600;
font-size: 175%;
}
p {
color: #0E0A24;
text-align: center;
font-weight: 300;
}
span {
font-size: 120%;
font-weight: 400;
}
.smallTile {
background-color: white;
width: 23vw;
height: 65%;
border-radius: 15px;
}
.largeTile {
background-color: white;
width: 28vw;
height: 70%;
border-radius: 15px;
}
#photo {
margin-left: 8.75%;
position: relative;
top: 27%;
transform: translateY(-27%);
float: left;
}
#video {
margin-right: 8.75%;
position: relative;
top: 27%;
transform: translateY(-27%);
float: right;
}
#combo {
margin-right: 8.75%;
position: absolute;
left: 50%;
top: 60%;
transform: translate(-50%, -60%);
}
hr {
margin-top: 6%;
margin-bottom: 6%;
width: 20%;
position: relative;
left: 50%;
transform: translateX(-50%);
background-color: #0E0A24;
border: none;
height: 0.1px;
;
}
.topHR {
width: 50%;
margin-top: 4vh;
margin-bottom: 4vh;
height: 2px;
border-radius: 1px;
;
}
#comboHeader {
font-weight: 900;
font-size: 200%;
}
#media screen and (max-width: 1100px) {
body {
background-color: red;
}
.smallTile {
display: block;
position: relative;
width: 86vw;
height: 95vh;
}
.largeTile {
display: block;
position: relative;
width: 86vw;
}
#photo {}
#video {
margin-top: 100vh;
}
#combo {
margin-top: 100vh;
position: relative;
}
h1 {
margin-bottom: 20px;
}
}
<div id=p ricing>
<h1>Our Pricing:</h1>
<div class="smallTile" id="photo">
<h2>Photography<br>Plan</h2>
<hr class="topHR">
<p><span>0 - 10 Pictures</span><br>$100</p>
<hr>
<p><span>10 - 20 Pictures</span><br>$175</p>
<hr>
<p><span>20+ Pictures</span><br>$250</p>
</div>
<div class="smallTile" id="video">
<h2>Videography<br>Plan</h2>
<hr class="topHR">
<p><span>0 - 5 Videos</span><br>$100</p>
<hr>
<p><span>5 - 10 Videos</span><br>$150</p>
<hr>
<p><span>Edited Video</span><br>Additional $50</p>
</div>
<div class="largeTile" id="combo">
<h2 id="comboHeader">Combo<br>Plan</h2>
<hr class="topHR">
<p><span>Combined price of both plans</span><br>$50 Reduced</p>
<hr>
</div>
</div>
I noticed that the combo package text is at the bottom of the page instead of in the div where I placed it. Additionally, is it possible to change the order of the divs so that the combo package is last on the responsive site only? Thanks for your help in advance!
I noticed you did not specify the float value for the combo div. Add float to the combo styles as such:
#combo{
margin-right: 8.75%;
position: absolute;
left: 50%;
top: 60%;
transform: translate(-50%, -60%);
float: left;
}

Cant Scroll After editing mobile website design

Im making a responive website and the mobile design is fine but when I expand to desktop size I can't scroll? Does it have to do with anything in my universal selector (*)? Do I need to add media queries? Does it have to do with specificity Can you find any errors in my CSS?:
* {
margin: 0;
padding: 0;
list-style-type: none;
}
html,
body {
background-color: black;
width: 100%;
height: 100%;
max-width: 100%;
overflow-x: hidden;
text-decoration: none;
}
/*Fonts*/
#font-face {
src: url(../fonts/Montserrat-Regular.ttf);
font-family: mos;
}
#font-face {
src: url(../fonts/Montserrat-Bold.ttf);
font-family: mosbo;
}
#font-face {
src: url(../fonts/Montserrat-Italic.ttf);
font-family: mosit;
}
/*button that the user clicks to open navigation*/
#white-elip {
position: absolute;
width: 70px;
height: 70px;
left: 10px;
}
/*header*/
#picofme {
width: 220px;
height: 220px;
position: absolute;
left: 30px;
}
h1 {
color: white;
font-family: mosbo;
font-size: 1.6rem;
position: absolute;
top: 110px;
left: 35px;
}
.caption {
color: white;
font-family: mos;
font-size: 0.9rem;
width: 200px;
position: absolute;
top: 150px;
left: 20px;
}

Strange behavior when hovering/clicking an element

I get a really strange behavior on a very simple html landing page.
The page is the following: http://fw2019.gosrl.webfactional.com/
If you try to click on any link (FB icon, Instagram icon, years of the previous edition) the yellow shape on the background suddenly move to the right.
The page is pure html + css, with no javascript attached.
I've tried to:
- deactivate any transition/animation when hovering Social Icons
- check if I get the same behavior at a lower resolution -> YES
html,
body {
margin: 0;
height: 100%;
font-family: "Open Sans", arial, sans-serif;
}
.main-image {}
.main-image img {
margin: 30px auto;
display: block;
max-width: 600px;
width: 100%;
}
.content-wrapper,
.fake-content-wrapper {
position: absolute;
text-align: center;
width: 1636px;
height: 562px;
background: url(/wp-content/asset/grid-svg-4-01.svg);
overflow: hidden;
margin: 0 auto;
z-index: 99;
}
.fake-content-wrapper {
position: absolute;
overflow: visible;
left: 50%;
top: -130px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
background: transparent;
z-index: 56;
}
.content-wrapper p {
text-align: center;
margin-bottom: 5px;
margin-top: 0;
}
.content-wrapper h1 {
text-align: center;
margin-top: 0;
}
.main-container {
display: table;
width: 100%;
height: 100%;
}
.main-content {
vertical-align: middle;
position: relative;
height: 100%;
padding: 0;
margin: 0;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: center;
}
.titolo {
display: inline-block;
width: 772px;
height: 208px;
position: absolute;
top: 176px;
left: 345px;
background: #fff;
margin: 0;
padding: 32px 25px;
box-sizing: border-box;
margin-left: 1px;
margin-top: 1px;
font-family: titling-gothic-fb-wide, sans-serif;
font-style: normal;
font-weight: 700;
text-transform: uppercase;
font-size: 64px;
line-height: 70px;
z-index: 999;
text-align: left;
}
.logo-container {
background: #000;
width: 171px;
height: 138px;
position: absolute;
left: 1120px;
top: 212px;
padding: 28px;
box-sizing: border-box !important;
z-index: 999;
}
.logo-container img {
width: 100%;
}
.sponsor-container {
position: absolute;
right: 260px;
top: 37px;
background: #fff;
width: 428px;
height: 68px;
padding: 8px;
box-sizing: border-box;
text-align: center;
z-index: 999;
}
.date-container {
box-sizing: border-box;
background: #fff;
position: absolute;
width: 944px;
left: 346px;
top: 422px;
text-align: center;
z-index: 999;
font-family: "Space Mono", monospace;
padding: 6px 10px;
}
.date-container>div {
display: inline-block;
text-transform: uppercase;
padding: 0;
margin-right: 10px;
font-size: 56px;
line-height: 100%;
}
.date-container .light {
font-weight: 400;
}
.date-container .bold {
font-weight: 700;
}
.blue-box {
box-sizing: border-box;
width: 256px;
height: 0;
background-color: rgba(0, 157, 255, 1);
position: absolute;
background-position: -2px -2px;
right: 2px;
bottom: 2px;
height: 138px;
z-index: 0 !important;
animation-name: enlarge;
animation-duration: 5s;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-delay: 1s;
animation-timing-function: linear;
}
#keyframes enlarge {
from {
height: 0;
}
to {
height: 560px;
}
}
#keyframes slide {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-1000px);
}
}
.red-circle {
position: absolute;
left: 40px;
top: 2px;
height: 558px;
width: 562px;
display: inline-block;
box-sizing: border-box;
background-color: #ff003f;
background-position: 130px 136px;
border: 2px solid #000;
border-radius: 1000000px;
z-index: 9;
}
.skate-park {
/* width: 1636px;
height: 1200px; */
position: absolute;
display: block;
background: url(http://fw2019.gosrl.webfactional.com/wp-content/uploads/2019/07/skate-bg-2.png);
/* left: -47px;)
top: 102px; */
background-size: cover;
top: -45px;
left: 300px;
height: 200vh;
width: 100vw;
}
.fake-content-wrapper#circle {
top: 203px;
}
.fake-content-wrapper#rect {
top: 333px;
}
.content-wrapper#skate {
overflow: hidden;
background: none;
position: fixed;
left: -10%;
height: 200vh;
width: 200vw;
position: fixed;
}
.content-wrapper#skate .skate-park {
position: relative;
/* top: -140px; */
}
/* ANIMAZIONE */
/* .blue-box {
animation-name: bluebox;
animation-duration: 20s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
#keyframes bluebox {
0% {transform: translate(0,0);}
6.39% {transform: translate(0,-210px);}
43.61% {transform: translate(-1376px,-210px);}
55.58% {transform: translate(-1376px,210px);}
92.8% {transform: translate(0px,210px);}
100% {transform: translate(0px,0);}
} */
.previous h3,
.previous a {
display: inline-block;
margin-right: 10px;
}
.previous a:last-child {
margin-right: 0;
}
.previous h3 {
font-family: titling-gothic-fb-narrow, sans-serif;
margin-block-start: 0px;
margin-block-end: 0px;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-weight: bold;
margin-right: 10px;
font-weight: 500;
}
.previous a {
font-family: "Space Mono", monospace;
color: #000;
text-decoration: none;
margin-right: 5px;
}
.previous a:hover {
text-decoration: underline;
}
.content-wrapper#footer {
overflow: visible;
background: none;
}
.previous,
.social {
position: absolute;
bottom: -40px;
top: auto;
right: 0;
padding-top: 10px;
padding-bottom: 10px;
}
.social {
bottom: -50px;
left: 0;
right: auto;
}
.social img {
height: 30px;
}
.social a {
margin-right: 5px;
}
.social a img {
transition: all 0.5s ease;
}
/* .social a:hover img {
transform: rotateY(360deg);
} */
#media screen and (max-width: 1919px) and (min-width: 1366px) {
.content-wrapper,
.fake-content-wrapper {
width: 1292px;
}
.titolo,
.date-container {
left: 173px;
}
.date-container {
width: 772px;
left: 174px;
}
.logo-container {
left: 948px;
}
.fake-content-wrapper#circle {
top: 196px;
}
.fake-content-wrapper#rect {
top: 326px;
}
/* .skate-park {
left: -360px;
} */
.date-container>div {
font-size: 46px;
padding-top: 5px;
padding-bottom: 5px;
}
.blue-box {
bottom: -200px;
top: auto;
width: 170px;
}
#keyframes enlarge {
from {
height: 0;
}
to {
height: 760px;
}
}
}
#media screen and (max-width: 1365px) and (min-width: 1024px) {
.content-wrapper {
width: 862px;
}
.sponsor-container {
right: 88px;
}
.titolo,
.date-container {
left: 1px;
width: 686px;
}
.date-container {
left: 2px;
}
.date-container>div {
font-size: 40px;
left: 2px;
padding-top: 8px;
padding-bottom: 8px;
}
.blue-box {
bottom: 2px;
top: auto;
width: 170px;
}
.logo-container {
left: 689px;
}
.content-wrapper#skate {
left: -20%;
width: 200%;
}
}
#media screen and (max-width: 1023px) and (min-width: 768px) {
.content-wrapper {
width: 604px;
}
.sponsor-container {
right: 2px;
}
.titolo {
left: 1px;
font-size: 60px;
width: 600px;
}
.date-container {
left: 2px;
width: 600px;
}
.date-container>div {
font-size: 35px;
margin-right: 4px;
padding-top: 11px;
padding-bottom: 11px;
}
.logo-container {
left: 2px;
top: 37px;
}
.blue-box {
width: 170px;
}
.content-wrapper#skate {
left: -30%;
}
}
#media screen and (max-width: 767px) and (min-width: 375px) {
.content-wrapper {
width: 346px;
}
.titolo {
left: 1px;
font-size: 41px;
line-height: 43px;
height: 138px;
width: 342px;
padding-top: 8px;
}
.logo-container {
top: 37px;
left: 2px;
}
.date-container {
width: 342px;
left: 2px;
top: 352px;
padding: 4.5px;
}
.date-container>div {
font-size: 18px;
line-height: 18px;
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
}
.sponsor-container {
left: 2px;
width: 342px;
bottom: 37px;
top: auto;
}
.sponsor-container img {
width: 100%;
padding-left: 10px;
padding-right: 10px;
box-sizing: border-box;
}
.previous h3 {
display: block;
text-align: right;
}
.previous {
bottom: -60px;
}
.blue-box {
width: 170px;
}
.content-wrapper#skate {
left: -50%;
}
.skate-park {
top: -100px;
left: 300px;
width: 150vw;
}
.titolo {
font-size: 32px;
padding-top: 5px;
}
}
#media screen and (max-width: 374px) {
.content-wrapper {
width: 259.5px;
}
.logo-container {
top: 37px;
left: 2px;
}
.titolo {
left: 1px;
font-size: 28px;
line-height: 32px;
width: 256px;
height: 173px;
}
.date-container {
left: 2px;
width: 256px;
top: 387px;
height: 68px;
}
.date-container>div {
font-size: 14px;
margin: 0;
padding-top: 21px;
}
.sponsor-container {
width: 256px;
left: 2px;
bottom: 2px;
top: auto;
}
.sponsor-container img {
width: 100%;
padding-left: 10px;
padding-right: 10px;
box-sizing: border-box;
padding-top: 8px;
}
.previous h3 {
display: block;
text-align: right;
}
.previous {
bottom: -60px;
}
.blue-box {
width: 84px;
}
.content-wrapper#skate {
left: -50%;
width: 400vw;
}
.previous {
display: block;
width: 100%;
clear: both;
text-align: right;
bottom: -100px;
}
.social {
text-align: left;
}
.skate-park {
left: 200px;
}
.main-content {
align-items: baseline;
}
body {
padding-top: 25px;
padding-bottom: 25px;
}
.content-wrapper#skate {
top: 0;
}
.content-wrapper#skate {
top: -400px;
}
}
/* CELL ORIZZONTALI */
#media screen and (max-height: 500px) and (orientation: landscape) {
.main-content {
align-items: baseline;
}
body {
padding-top: 25px;
padding-bottom: 25px;
}
.content-wrapper#skate {
top: 0;
}
}
/* RETINA */
#media screen and (-webkit-min-device-pixel-ratio: 2),
(min-width: 1921px) {
.skate-park {
left: 13.5%;
top: -10%;
}
}
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<title>Festiwall 2019 | 9 - 15 Settembre 2019 | Ragusa</title>
<link rel="stylesheet" href="https://use.typekit.net/qse6gsn.css">
<link href="https://fonts.googleapis.com/css?family=Space+Mono:400,700&display=swap" rel="stylesheet">
</head>
<body>
<div class="main-container">
<div class="main-content">
<div class="content-wrapper" id="circle">
<div class="red-circle"></div>
</div>
<div class="content-wrapper" id="skate">
<div class="skate-park"></div>
</div>
<div class="content-wrapper" id="rect">
<div class="blue-box"></div>
</div>
<div class="content-wrapper">
<h2 class="titolo">Public Art<br>Festival</h2>
<div class="logo-container">
<img src="/wp-content/uploads/2019/07/festiwall-2019-logo.png" alt="Festiwall 2019 logo">
</div>
<div class="sponsor-container">
<img src="/wp-content/uploads/2019/07/festiwall-2019-sponsor.png" alt="Festiwall 2019 Sponsor">
</div>
<div class="date-container">
<div class="light">09/15</div>
<div class="bold">September</div>
<div class="light">2019</div>
<div class="bold">Ragusa</div>
</div>
</div>
<div class="content-wrapper" id="footer">
<div class="social">
<img src="/wp-content/uploads/2019/07/fw2019-icons-_0001_fb.png" alt="Facebook">
<img src="/wp-content/uploads/2019/07/fw2019-icons-_0000_inst.png" alt="Instagram">
</div>
<div class="previous">
<h3>Edizioni precedenti</h3>
2015 / 2016 / 2017 / <a href="http://www.festiwall.it/2018"
title="Festiwall 2016">2018</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Thank you for those who are willing to give support :)
Antonio

How do I have to change my code to make it more responsive?

I´m currently building my first website. I have a Button in the middle and some text above. I dont get the responsive desing 100% correct. I added some media querys to make the design adapt to different browser sizes. The biggest problem is that when I zoom in the whole layout gets messed up. Maybe you can take a quick look at my code and give me some hints.
body,
html {
min-height: 100%;
}
body {
color: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
line-height: 1.6em;
margin: 0;
height: 100%;
overflow: hidden;
}
.bild {
background-repeat: no-repeat;
background-size: cover;
}
#caption {
font-size: 14px;
margin-left: 3%;
font-family: 'Quicksand', sans-serif;
}
#main-footer {
width: 100%;
height: 40px;
background-color: #0005;
position: fixed;
left: 0;
bottom: 0;
line-height: 10px;
padding-left: 3%;
}
#main-footer p {
font-family: 'Quicksand', sans-serif;
float: left;
}
#main-footer a {
font-family: 'Quicksand', sans-serif;
float: right;
color: #fff;
padding-right: 5%;
text-decoration: none;
margin-top: 16px;
}
#spruchErstellen {
font-family: 'Architects Daughter', cursive;
text-align: center;
margin-top: 25%;
font-size: 45px;
margin-left: 25%;
margin-right: 25%;
}
.container {
width: 80%;
margin: auto;
overflow: hidden;
position: relative;
}
.block {
width: 100%;
font-size: 30px;
position: relative;
}
.button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50% -50%);
margin-top: -40px;
margin-left: -120px;
font-family: 'Architects Daughter', cursive;
}
.button {
background: none;
color: #ccc;
width: 240px;
height: 80px;
border: 2px solid #fff;
font-size: 24px;
border-radius: 4px;
transition: .6s;
overflow: hidden;
font-style: bold;
color: #fff;
}
button:focus {
outline: none;
}
button:before {
content: '';
display: block;
position: absolute;
background: rgba(255, 255, 255, .5);
width: 60px;
height: 100%;
left: 0;
top: 0;
opacity: .5s;
filter: blur(30);
transform: translateX(-130px) skewX(-15deg);
}
button:after {
content: '';
display: block;
position: absolute;
background: rgba(255, 255, 255, .2);
width: 30px;
height: 100%;
left: 30px;
top: 0;
opacity: 0;
filter: blur (30px);
transform: translate(-100px) scaleX(-15deg);
}
button:hover {
background: #cc0000;
cursor: pointer;
}
button:hover:before {
transform: translateX(300px) skewX(-15deg);
opacity: .6;
transition: .7s;
}
button:hover:after {
transform: translateX(300px) skewX(-15deg);
opacity: 1;
transition: .7s;
}
#media only screen and (min-width:1101px) {
#spruchErstellen {
font-family: 'Architects Daughter', cursive;
text-align: center;
margin-top: 7%;
font-size: 45px;
margin-left: 25%;
margin-right: 25%;
line-height: 50px;
}
.button {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50% -50%);
margin-top: -40px;
margin-left: -120px;
}
}
I have media querys but I didnt insert all to make the code more clear.
As i allready mentioned I´d like to make it more responsive.
Try to avoid using px. Try to use %.
Also, you can use an CSS framework like Bootstrap to do it for you: https://getbootstrap.com/

Three extra pixels at the bottom of the page unaccounted for and not sure how to get rid of them?

I'm working on building a responsive website and I have run into an issue where, upon scrolling, there looks to be about two or three extra pixels at the bottom of the page beyond the content.
I'm not sure where they're coming from or how to get rid of them. They appear to be inside of the overall container but outside of the header and content blocks. I'm assuming it's some kind of margin issue?
Any assistance would be greatly appreciated!
JS Fiddle here: http://jsfiddle.net/BramVanroy/toxk8Lde/1/
HTML
<div id="container">
<div id="header">
<div id="headerLeft">
<div id="logo">
<img src="http://mbeach.me/arch/images/layout/logo_100.png" alt="MILES Arch Logo" id="miles_arch_logo" />
</div>
<div id="companyName">
<span id="miles_arch">MILES architecture group</span>
</div>
</div>
<div id="headerRight">
<div id="navMenu">
<img src="http://mbeach.me/arch/images/layout/menu_button.png" id="nav_menu_button" alt="menu_button" />
</div>
</div>
</div>
<div id="content">
<div id="slideshow">
<img src="http://mbeach.me/arch/images/layout/main_background.jpg" alt="" />
<div id="leftRight"></div>
<div id="buttons"></div>
</div>
</div>
</div>
CSS
html {
font-size: 100%;
}
body {
font-size: 1em;
background:;
}
#container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0px solid yellow;
}
#header {
width: 100%;
background: #fff;
border-bottom: 4px solid #ffa500;
display: inline-block;
}
#headerLeft {
display: inherit;
padding-bottom: 26px;
}
#logo {
display: inherit;
}
#miles_arch_logo {
position: relative;
top: 15px;
margin-left: 30px;
width: 100px;
height: 101px;
}
#companyName {
margin-left: 92px;
margin-right: 37px;
display: inherit;
font-size: 32px;
position: relative;
top: -20px;
color: #105697;
font-family: arial, sans-serif;
letter-spacing: .05em;
/* Below rescales font: first number is horizontal, second is vertical. */
transform: scale(1.2, .8);
/* W3C */
-webkit-transform: scale(1.2, .8);
/* Safari and Chrome */
-moz-transform: scale(1.2, .8);
/* Firefox */
-ms-transform: scale(1.2, .8);
/* IE 9 */
-o-transform: scale(1.2, .8);
/* Opera */
}
#headerRight {
display: inherit;
}
#navMenu {
width: 50px;
height: 41px;
position: absolute;
right: 44px;
top: 44px;
}
#nav_menu_button {
width: 50px;
height: 41px;
}
#content {
width: 100%;
max-width: 100%;
position: absolute;
top: 136px;
bottom: 0px;
border-bottom: 0px solid yellow;
margin: 0;
padding: 0;
}
#slideshow {
overflow: hidden;
}
#slideshow img {
width: 100%;
/*position: relative;
margin-top: -100px;*/
}
#leftRight {
position: absolute;
border: 0px solid red;
top: 0px;
width: 50px;
height: 50px;
}
#buttons {
position: absolute;
border: 0px solid red;
top: 0px;
left: 50px;
width: 50px;
height: 50px;
}
/* Resizes header info depending on screen size. */
#media (max-width: 1375px) {
/*#slideshow {
height: 531px;
overflow: hidden;
}
#slideshow img {
width: 100%;
border: 0px solid red;
}*/
}
#media (max-width: 800px) {
/*#slideshow {
height: 428px;
overflow: hidden;
}
#slideshow img {
width: 800px;
border: 0px solid red;
}*/
#companyName {
font-size: 22px;
margin-left: 52px;
margin-right: 37px;
}
#miles_arch_logo {
width: 70%;
height: 70%;
}
#nav_menu_button {
width: 80%;
height: 80%;
}
#content {
top: 126px;
}
}
#media (max-width: 700px) {
#companyName {
font-size: 18px;
margin-left: 22px;
margin-right: 37px;
top: -10px;
}
#miles_arch_logo {
width: 50%;
height: 50%;
}
#navMenu {
right: 20px;
top: 35px;
}
#nav_menu_button {
width: 60%;
height: 60%;
}
#content {
top: 99px;
}
}
#media (max-width: 500px) {
#companyName {
font-size: 16px;
margin-left: 22px;
margin-right: 37px;
top: 2px;
}
#miles_arch_logo {
width: 35%;
height: 35%;
}
#navMenu {
right: 8px;
top: 28px;
}
#nav_menu_button {
width: 55%;
height: 55%;
}
#content {
top: 79px;
}
}
#media (max-width: 425px) {
#companyName {
font-size: 12px;
margin-left: 2px;
margin-right: 37px;
top: 2px;
}
#miles_arch_logo {
width: 30%;
height: 30%;
}
#navMenu {
right: 5px;
top: 28px;
}
#nav_menu_button {
width: 50%;
height: 50%;
}
#content {
top: 72px;
}
}
Set your img's style to include display: block; or vertical-align: middle;
http://jsfiddle.net/85a6a52t/1/ (See very bottom of CSS panel)
#slideshow img { display: block; }
or
#slideshow img { vertical-align: middle; }
Reference to this good answer that explains issue