- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I was messing around with this tutorial (https://css-tricks.com/slider-with-sliding-backgrounds/) where you can shift the background image by either scrolling or clicking some buttons at the bottom. When I try to reposition the buttons, the first two disappear.
https://codepen.io/chriscoyier/pen/Fkczq
So here is the code that styles the buttons:
.slider-nav a {
width: 10px;
height: 10px;
display: inline-block;
background: #ddd;
overflow: hidden;
text-indent: -9999px;
border-radius: 50%;
}
When I try to change the position to anything but default, the first two buttons are nowhere to be found:
.slider-nav a {
position: fixed;
top: 100px;
right: 100px;
width: 10px;
height: 10px;
display: inline-block;
background: #ddd;
overflow: hidden;
text-indent: -9999px;
border-radius: 50%;
}
I’m very new to all this so I would really appreciate any help, thanks.
If you’re positioning .slider-nav a
as per the posted CSS, you’re stacking all the navigation pips on top of each other.
Try positing their container instead: .slider-nav
Ah, it makes so much sense now! Thank you very much!