I am working with the following HTML structure:
<div class="col-sm-12">
<input id="my_id">
<div class="col-sm-1 col-3-box" style="position:absolute; margin-left:340px;">
</div>
</div>
How can I target and change the margin-left value of this second div using CSS?
<div class="col-sm-1 col-3-box" style="position:absolute; margin-left:340px;">
I have attempted to do so with the following CSS:
#my_id + .col-sm-1 .col-3-box{
margin-left:370px!important;
}
However, this approach does not seem to work. Can you advise me on what I might be doing wrong in this case?