I am experiencing alignment issues with the content inside two divs that contain multiple nested divs. The content is not properly aligned.
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 = "sorting ">
<select class = "sorting-select-box">
<option>Test1</option>
<option>Test2</option>
<option>Test3</option>
</select>
</div>
-->
</div>
</div>
</div>
The screenshot attached shows that Clear All should be inline with Filter By and Filter should align with Device Shown.