html - Alignment issue with the content inside the two inline div? -


i have 2 div , inside div multiple div there , facing the alignment issue whatever content inside div not proper align.

css code:

.breadcrumb-nav{     margin-left: 230px;     left: 70px;     top: 70px;     width: 1291px;     height: 66px;     opacity: 100%;     background: #efefef; }  .grid{      margin-left: 230px; }  /*left section styling */  .left-content{     top :104px;     left: 151px;     opacity: 100%;     height: 20px;     width: 194px; }  .shown-device{     line-height: 20px;     width :147px;     font-size: 16px;     color :#101010;     margin-top: 15px;     margin-left: 40px; }   .filter-by{     left: 80px;     top: 177px;     width: 194px;     height: 28px;     background: #d8d8d8;     margin-top: 6px; }  .filter-by-heading-left{     left: 86px;     top: 182px;     height: 17px;     padding:5px 134px 6px 6px;     font-weight: bold;     font-size: 13px;     line-height: 17px; }  .filter-by-heading-right{     left: 225px;     top: 182px;     height: 17px;     padding:5px 6px 8px 133px;     font-size: 11px;     line-height: 17px; }  /*right section styling*/  .right-content .filter{     margin-left: 229px;     margin-top: 18px; }  .filter-heading{     width: 39px;     height: 16px;     font-size: 13px;     line-height: 16px;     color: #666666;  } 

html code:

<div class= "notification-content">     <div class = "breadcrumb-nav">         <h1>devices</h1>     </div>     <div class = "grid">         <div class = "left-content">             <p class ="shown-device"><strong>1487</strong> device shown</p>             <div class = "filter-by">                 <p class ="filter-by-heading-left">filter by:</p>                 <a class =" filter-by-heading-right">clear all</a>             </div>         </div>         <div class = "right-content">           <div class = "filter">                 <p class ="filter-heading">filters:</p>           </div> <!--             <div class = "soritng ">                 <select class = "sorting-select-box">                     <option>test1</option>                     <option>test2</option>                     <option>test3</option>                 </select>             </div> -->          </div>     </div> </div> 

i attaching screen shot clear all has come inline filter all: , filter has come device shown highlightedenter image description here in attachment.

try see link. and, think that, need 2 columns layout. can find lot of examples how googling.

i changed:

.left-content{     top :104px;     left: 151px;     opacity: 100%;     float: left;     width: 60%;     /*height: 20px;*/     /*width: 294px;*/ } .shown-device{     line-height: 20px;     width :147px;     font-size: 16px;     color :#101010;     /*margin-top: 15px;*/     margin-left: 120px; } .filter-by-heading-left{     /*left: 86px;     top: 182px;     height: 17px;     padding:5px 134px 6px 6px;     font-weight: bold;     font-size: 13px;     line-height: 17px;*/ } .right-content .filter{     float: right;     /*margin-left: 329px;*/     width: 40%;     margin-top: 6px; }   flag 

there many solutions,you can see this


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -