I am using 2 images 1 is for my Logo and 2nd is for my Login Form, my Logo is reducing properly when I reduce me browser size, but my 2nd image which is background image is not reducing the size as per window size I am giving height:100%, min-height:576px; width:100%, it is working properly in Desktop mode, but having issue in Mobile View, or tablet view.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dashboard vTM</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- CSS -->
<link href="assets/css/bootstrap3.2.0.css" rel="stylesheet">
<link href="assets/css/customStyle.css" rel="stylesheet">
<link href="assets/css/bootstrap-datetimepicker.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="../assets/js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="assets/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.js"></script>
<style>
body, html {
height: 100%;
}
.outerContainer {
position:fixed;
left:0;
right:0;
top:0;
bottom:0;
overflow:auto;
margin:0;
padding:0;
background: #666;
}
.wrap {
display:table;
width:100%;
height:100%;
}
.inner {
display:table-cell;
width:100%;
height:100%;
vertical-align:middle;
}
.innerContainer {
/*background: url("assets/images/Login_bg.png") no-repeat center;
width:472px;
height:546px;*/
margin: 0 auto;
}
.btn {
font-weight: 700;
height: 36px;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
cursor: default;
}
.profile-img-card {
width: 96px;
height: 96px;
margin: 0 auto;
display: block;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
}
.techmLogo-img {
display: block;
height: 434px;
margin: 0 auto;
width: 375px;
}
.techMLogoContainer{
margin: 0 auto;
}
.techMLogoContainer img{
width:100%;
max-width: 375px;
height:100%;
text-align:right;
float:right;
}
.techMLogoContainer1{
width: 100%;
height:100%;
min-height:576px;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
background-image: url("assets/images/Login.png");
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
@media only screen and (min-width : 768px) {
.innerContainer {
width:100%;
padding: 20px 20px;
}
.techMLogoContainer1{
background: url("assets/images/Login.png") no-repeat center;
}
}
@media only screen and ( max-width: 62.5em ) /* 1000 */
{
.techMLogoContainer img{
float:none !important;
}
.techMLogoContainer1 img{
float:none !important;
}
.techMLogoContainer1{
background: url("assets/images/Login_bg.png") no-repeat center;
}
}
</style>
<script type="text/javascript" language="javascript">
$( document ).ready(function() {
});
</script>
</head>
<body>
<div id="wrap">
<div class="outerContainer">
<div class="wrap">
<div class="inner">
<!--<div class="col-sm-12 col-md-2 col-lg-2"> </div>-->
<!--<div class="col-sm-12 col-md-4 col-lg-5 column30">
<img id="" class="techmLogo-img" src="assets/images/logo.png" />
</div>-->
<div class="innerContainer">
<div class=" col-sm-12 col-md-12 col-lg-12 techMLogoContainer">
<div class="col-sm-12 col-md-12 col-lg-1"> </div>
<div class=" col-sm-12 col-md-12 col-lg-5 techMLogoContainer">
<img id="" class="techmLogo-img" src="assets/images/Login_logo.png" />
</div>
<div class=" col-sm-12 col-md-12 col-lg-5">
<div class="techMLogoContainer1"></div>
</div>
<div class="col-sm-12 col-md-12 col-lg-1"> </div>
</div>
</div>
</div>
<!-- /inner -->
</div>
<!-- end wrap -->
</div>
<div class="push"></div>
</div>
<!-- /container -->
<footer class="footer">
<p class="text-muted">@copyright/p>
</footer>
</body>
</html>