Ruhul Ruhul - 1 year ago 86
CSS Question

jQuery how to set the position of a div with relative to another div?

I am having below two divs inmy html,

<div id="chart-2" class="graph"></div>
<div id="chart2Buttons"></div>

First div represents the graph which I am plotting using highchart.js while second represents the buttons which I am supposed to place under first div as show in below image.
enter image description here

Can you please help how can I achieve this to place my second div at the bottom-right corner of first div?


Answer Source

Add css rule:

#chart2Buttons {
    display: inline-block;
    float: right;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download