Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Dan Sinclair
1,420 PointsHelp with CSS arrow links
I'm having trouble with my CSS arrow links. They don't fully show up as arrow, and they also do not constantly stay in the same position on the page.
-Looking for full arrow visibility -Looking to have arrow on top of everything during scroll.
I know I need to keep the position relative for them to be clickable, however, I'm not sure what areas to change. Either the arrows themselves or the articles they are contained within.
</article>
<article class="left-container" >
<a href="" class="left-arrow"></a>
</article>
<article class="right-container">
<a href="T-Shirt-3ajeeb!.html" class="right-arrow"></a>
</article>
article.left-container {
visibility: none;
position: relative;
float: left;
left: 5px;
margin: 14px;
}
a.left-arrow{
padding: 12px;
width: 0;
height: 0;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-right: 12px solid green;
z-index: 10;
position: relative;
max-width: 100%;
}
article.right-container {
visibility: none;
position: relative;
float: right;
left: 5px;
margin: 14px;
}
a.right-arrow{
padding: 12px;
width: 0;
height: 0;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 12px solid green;
z-index: 9999;
position: relative;
max-width: 100%;
}
Chris Freeman
Treehouse Moderator 68,468 PointsChris Freeman
Treehouse Moderator 68,468 PointsMoved from General Discussion to CSS