I have a Twitter bootstrap carousel that works very well on my webpage, but I can't make the side arrows behave the way I want. My CSS knowledge is probably 5 out of 10.
Currently, the glyph arrows are absolutely located to the left and right of the window. When I squeeze or enlarge the window, these arrows remain at the same distance from the edges of the window. Which is strange and wrong, because they move everywhere on top of carousel images. I want them to remain stationary in the carousel image, and not in the browser window. I also need to change the font glyphs to transparent images.
The arrows on the left and right scroll the carousel when pressed. They are not images, they are glyphs, which, I think, are a kind of weird font. Here's the HTML:
<a href="#myCarousel" class="left carousel-control" data-slide="prev" style="width:0px"><span class="glyphicon glyphicon-chevron-left"></span></a> <a href="#myCarousel" class="right carousel-control" data-slide="next" style="width:0px"><span class="glyphicon glyphicon-chevron-right"></span></a>
Here is the css for href:
.carousel-control { background: #343432; position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
And here is the css for the inner range:
.glyphicon-chevron-right { position: absolute; top: 50%; z-index: 5; display: inline-block; }
and
.glyphicon { font-family: 'Glyphicons Halflings'; -webkit-font-smoothing: antialiased; font-style: normal; font-weight: normal; line-height: 1; -moz-osx-font-smoothing: grayscale; }
Although it does not appear in raw html, when I look at the Chrome dev toolbar inspector, inside the scroll I see this:
::before
Therefore, I need to know how to change the position of the arrows in order to remain stationary relative to the images of the carousel, and not the browser window. And I need to change the glyphs to some transparent arrows that I have.
Here is a real web page if you want to check any items: http://www.zerogravpro.com/temp/bootstrap/
Thanks.