

.w3-display-middle {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.w3-display-container:hover .w3-display-hover {
    display: block;
}
.w3-display-container:hover span.w3-display-hover {
    display: inline-block;
}
.w3-display-hover {
    display: none;
}
.w3-display-position {
    position: absolute;
}

/* ******************************************************************************************
							DIFFERENT DEVICES
********************************************************************************************/
/* SMARTPHONES */
/* portrait and landscape */
@media screen and (min-device-width : 320px) 
and (max-device-width : 480px)  { … }

/*  landscape  */
@media screen and (min-width : 321px)  { … }

/*  portrait */
@media screen and (max-width : 320px)  { … }

/* iPhone 4 and high pixel devices  */
@media screen and (-webkit-min-device-pixel-ratio : 2)
and (device-width: 683px)
and (orientation: landscape),
screen and (device-pixel-ratio : 1.5) 
and (device-width: 400px)
and (orientation: portrait) { … }

/* iPADS*/	
/* portrait and landscape */
@media screen and (min-device-width : 768px) 
and (max-device-width : 1024px)  { … }

/* landscape */
@media screen and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape)  { … }

/* portrait */
@media screen and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait)  { … }

/* DESKTOP & LAPTOP */
@media screen and (min-width : 1224px)  { … } 

/* BIG SCREENS */
@media screen and (min-width : 1824px)  { … }	
