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!
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
Ben Taylor
902 PointsQuestion about a Nav
Hey guys,
I'm coding a site for a client and they've made their nav a little tricky.. I can easily sort this with images, but I'd rather keep it text.. The tricky bit is the arrow beneath, this obviously isn't just a simple text hyperlink.. Can anyone throw up some code for how they'd do this?
The nav: http://www.hecticdesigns.co.uk/clients/binsafe/binsafe.png
Many thanks!
Ben
2 Answers
Andrew McCormick
17,730 PointsIt won't affect the text. Here's a fiddle I found that some what shows what I'm talking about. http://jsfiddle.net/Daniel_Hug/ZRtHF/
Andrew McCormick
17,730 Pointsdo you want the triangle to be a character or are you ok with that being an image? If you are ok with an image then I would suspect doing something like nav li:hover:after { content: url(mytriangle.jpg);} would work. might add some top margin to it as well.
can you post a link to the site it's on? Or try something like dev tools or firebug to inspect the code yourself to see what's under the hood.

Ben Taylor
902 PointsHow would that effect the text though? Is content treated like background-image?
Ben Taylor
902 PointsBen Taylor
902 PointsThanks, I'll have a play around!