jquery - In css how to joining two div classes without space? -


in css have following:--

body {   background-color: #ffffff;   font-family: arial, georgia, sans-serif;   font-size: 16px; }   .wrapper {   width: 100%;   position: relative;   min-height: 1300px;   background-color: yellow;   -webkit-box-shadow: -10px 0 15px #000;   -moz-box-shadow: -10px 0 15px #000;   box-shadow: -10px 0 15px #000;   -webkit-transition: -webkit-transform 0.2s ease;   -moz-transition: -moz-transform 0.4s ease;   -ms-transition: -ms-transform 0.4s ease;   -o-transition: -o-transform 0.4s ease;   transition: transform 0.4s ease; }   .header1 {   width: 100%;   position: relative;   min-height: 90px;   clear:both;   background: url(../images/tooplate_footer1.png) no-repeat;     -webkit-transition: -webkit-transform 0.2s ease;   -moz-transition: -moz-transform 0.4s ease;   -ms-transition: -ms-transform 0.4s ease;   -o-transition: -o-transform 0.4s ease;   transition: transform 0.4s ease; }  input[type="checkbox"]:checked ~ .wrapper {   -webkit-transform: translatex(250px);   -moz-transform: translatex(250px);   -ms-transform: translatex(250px);   -o-transform: translatex(250px);   transform: translatex(250px); }  input[type="checkbox"]:not(:checked) ~ .wrapper {   -webkit-transform: translatex(0);   -moz-transform: translatex(0);   -ms-transform: translatex(0);   -o-transform: translatex(0);   transform: translatex(0); }       input[type="checkbox"]:checked ~ .header1 {   -webkit-transform: translatex(250px);   -moz-transform: translatex(250px);   -ms-transform: translatex(250px);   -o-transform: translatex(250px);   transform: translatex(250px); }  input[type="checkbox"]:not(:checked) ~ .header1 {   -webkit-transform: translatex(0);   -moz-transform: translatex(0);   -ms-transform: translatex(0);   -o-transform: translatex(0);   transform: translatex(0); }       @media screen , (min-width: 35em) {   .wrapper {     max-width: 1000px;     margin: 0 auto;     -webkit-box-shadow: none;     -moz-box-shadow: none;     box-shadow: none;   }     .header1 {     max-width: 1020px;     margin: 0 auto;    clear:both;   } 

and html following;-

 <body>     <div class="wrapper">     </div>     <div class="header1"></div>     </body> 

now getting page this page

i want remove space.so,that 2 div class can join together. have used margin-top:0px; space not removing..suggest me please.

the space between 2 divs comes div wraps around back, makes div higher looks.

to move up, use negative value margin-top.

for example

.header1 {   width: 100%;   position: relative;   min-height: 90px;   clear:both;   background: url(../images/tooplate_footer1.png) no-repeat;     -webkit-transition: -webkit-transform 0.2s ease;   -moz-transition: -moz-transform 0.4s ease;   -ms-transition: -ms-transform 0.4s ease;   -o-transition: -o-transform 0.4s ease;   transition: transform 0.4s ease;   margin-top: -4px; //here } 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -