I’m currently working on a site that uses a slider at some point, but instead of the regular arrows that are inside the slider (left and right arrows, for slider navigation) I need to get the left one attached to the left of the screen regardless of screen size and the same with the right arrow. It only works with my screen size currently (1366×768) and the code is
.bx-prev {
margin-left:-16.2%;
position:absolute;
margin-top:-200px;
}
.bx-next{
margin-left:86.2%;
position:absolute;
margin-top:-200px;
}
Any help would be appreciated. Also if it could be done best in Javascript/jQuery, I’m also open to that.
You need to add
position:relativeto the parent element then you can useposition:absolute; in related to the parent elementsample