I am trying to make my web page responsive. I need to adjust it for 768px tablets (like iPad). I started with the header, and apparently not a single element from my web page can be modified for 768px, using media screen. I left here the code of my header. As you can see in picture, the header appears smaller and I'm trying to make it wider. I need just an example to figure out what is wrong with the code and why it can't be adapted for 768px screens.
header {
background-color: rgb(36, 36, 36);
position: absolute;
top: 0px;
width: 100%;
height: 50px;
z-index: 275;
}
.logo {
font-size: 28px;
font-weight:300;
font-family: "aller_lightregular";
color: rgb(87, 197, 160);
text-align: left;
position: absolute;
left: 228px;
top: 12.494px;
z-index: 287;
}
.search {
position: absolute;
left: 1066px;
top: 16px;
width: 14px;
height: 14px;
z-index: 285;
color:rgb(126, 126, 126);
}
.rectangle {
background-color: rgba(211, 211, 211,0);
box-shadow: 1px 0px 0px 0px rgb(255, 255, 255),inset 1px 0px 0px 0px rgb(255, 255, 255, 0.35);
position: absolute;
left: 1110px;
top: 0px;
width: 160px;
height: 50px;
z-index: 277;
}
.login {
font-size: 12px;
font-family: allerregular;
font-weight:bold;
color: rgb(126, 126, 126);
line-height: 2.273;
text-align: center;
position: absolute;
left: 1138px;
top: 14px;
z-index: 279;
}
.login:hover{
color:white;
}
<head>
<title>Fooseshoes</title>
<meta charset="UTF-8"/>
<link href="css\style.css" rel="stylesheet"/>
<link href="css\reset.css" rel="stylesheet"/>
<link href="http://ift.tt/1oKzmdw" rel="stylesheet"/>
<link rel="stylesheet" href="http://ift.tt/QzbObT" />
<link href="fonts\stylesheet.css" rel="stylesheet"/>
<link href="css\modal.css" rel="stylesheet"/>
<link href="css\slider.css" rel="stylesheet"/>
<link href="css\responsive.css" rel="stylesheet"/>
<script src="http://ift.tt/J5OMPW" ></script>
<script src="js\main.js"></script>
<script src="js\jquery.leanModal.min.js"></script>
<script src="js\jquery.slider.js"></script>
</head>
<body>
<header>
<a href="home.html"><p class="logo">FOOSESHOES</p></a>
<div class="search_primary" id="wrap">
<form action="" autocomplete="on">
<input list="suggestions" id="search" name="search" type="text" placeholder="SEARCH"/>
<input id="search_submit" value="Rechercher" type="submit">
<datalist id="suggestions">
<option value="Men Shoes"></option>
<option value="Kids"></option>
<option value="New Arrivals"></option>
</datalist>
<input type="submit">
</form>
</div>
<img class="rectangle" src="images\Rectangle 2.png" />
<div class="container">
<a id="modal_trigger" href="#modal"><p class="login">LOGIN or REGISTER</p></a>
<div id="modal" class="popupContainer" style="display:none;">
<header class="popupHeader">
<p class="header_title">Login</p>
<span class="modal_close"><i class="fa fa-times"></i></span>
</header>
<section class="popupBody">
<!-- Social Login -->
<div class="social_login">
<div class="">
<a href="#" class="social_box fb">
<span class="icon"><i class="fa fa-facebook"></i></span>
<span class="icon_title">Connect with Facebook</span>
</a>
<a href="#" class="social_box google">
<span class="icon"><i class="fa fa-google-plus"></i></span>
<span class="icon_title">Connect with Google</span>
</a>
</div>
<div class="centeredText">
<span>Or use your Email address</span>
</div>
<div class="action_btns">
<div class="one_half"><a href="#" id="login_form" class="btn">Login</a></div>
<div class="one_half last"><a href="#" id="register_form" class="btn">Sign up</a></div>
</div>
</div>
<!-- Username & Password Login form -->
<div class="user_login">
<form>
<label>Email / Username</label>
<input type="text" />
<br />
<label>Password</label>
<input type="password" />
<br />
<div class="checkbox">
<input id="remember" type="checkbox" />
<label for="remember">Remember me on this computer</label>
</div>
<div class="action_btns">
<div class="one_half"><a href="#" class="btn back_btn"><i class="fa fa-angle-double-left"></i> Back</a></div>
<div class="one_half last"><a href="#" class="btn btn_red">Login</a></div>
</div>
</form>
<a href="#" class="forgot_password">Forgot password?</a>
</div>
<!-- Register Form -->
<div class="user_register">
<form>
<label>Full Name</label>
<input type="text" />
<br />
<label>Email Address</label>
<input type="email" />
<br />
<label>Password</label>
<input type="password" />
<br />
<div class="checkbox">
<input id="send_updates" type="checkbox" />
<label for="send_updates">Send me occasional email updates</label>
</div>
<div class="action_btns">
<div class="one_half"><a href="#" class="btn back_btn"><i class="fa fa-angle-double-left"></i> Back</a></div>
<div class="one_half last"><a href="#" class="btn btn_red">Register</a></div>
</div>
</form>
</div>
</section>
</div>
</div>
</header>
Aucun commentaire:
Enregistrer un commentaire