jquery - Sticky Footer height Issue -
some ware found sticky footer per need. 1 issue face. when increase resolution greater-than normal resolution, code work fine. there spacing between container div , footer div. here attach screen , want. 
   
so per image want stick (a) , (b) together. whole part appear single . here add css code. due heavy html , css code. i'm unable use jsfiddle. use twitter bootstrap framework.
    html {         position: relative;         min-height: 100%;     }     body {         margin: 0 0 100px; /* bottom = footer height */     }     footer {         background: none repeat scroll 0 0 #ffffff;         border-left: 1px solid #e1e1e1;         border-right: 1px solid #e1e1e1;         border-bottom: 1px solid #e1e1e1;         position: absolute;         bottom: 0;         height: 100px;     }      #wrap {         min-height: 100%;         height: auto !important;         height: 100%;         margin: 0 auto -142px;     }      
as can see in picture there 3 blocks 1 black box , 1 red box , again black box.
i can suggest wrt c# , div. please try concept here , implement in case.
suppose have 3 divs case. if make divs 1 after need follow "float: left" property if there no space beside div divs appear 1 after another. because divs block element.
again work if put div in 1 container/div having same "float: left" property.
lets come problem. here seems having 2 blocks 1 after another. when zoom in red container comes lots of spaces.
i guess red container may have height or might inheriting heights of parent element. check once. if not go border property, , make border of red element 0px. , use float:left property in 3 blocks space not inherited other block elements. better if can put 3 blocks in single block having float:left property.
hope work in case.
thanks
Comments
Post a Comment