0

I have two div and inside div multiple div is there and I am facing the the alignment issue whatever content is inside the div is 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 am attaching the screen shot also Clear All has to come inline with Filter ALL: and Filter has to come with Device shown as highlightedenter image description here in attachment.

Anita Mehta
  • 625
  • 2
  • 13
  • 30

2 Answers2

0

Here is a fiddle

Made changes in the following.. Hope this helps

.left-content{
  top :104px;
  left: 151px;
  opacity: 100%;
  height: 20px;
  width: 0;
  float: left;
}

.right-content{
  float: right;
}

.filter-by-heading-right{
  right: 0;
  top: -35px;
  height: 17px;
  padding: 0;
  position: relative;
  font-size: 11px;
  line-height: 17px;
  display: block;
  float: right;
}

Let me know whether you need your output like this..

Sharon
  • 177
  • 10
0

Try to see that link. And, I think that, you just need two columns layout. You can find a lot of good examples how to do it just 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 are so many solutions,you can see this this

Community
  • 1
  • 1
BSeitkazin
  • 2,889
  • 25
  • 40