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 trialmwengwe chitambo
73 PointsI created a link inside a div positioned absolute but the link is not clickable even though have specified the href
I created a link inside a div positioned absolute but the link is not clickable even though have specified the href and target. when i hover its not showing a cursor for a link. any ideas on how I can fix this please?
mwengwe chitambo
73 Pointshttps://codepen.io/goodman1/pen/xxKVvRL its the link in the section (dont mind the navigation)
2 Answers
Jeff Muday
Treehouse Moderator 28,720 PointsCSS is not my strong suit, but I did some sleuthing and found that the problem is located in the class definition of "section". The z-index that is applied will block the "click-ability" of the link.
To fix this...
In the CSS file, locate the definition of the class selector "section" and remove the z-index specification.
"z-index:-1;"
Save, reload and it will be working again.
Good luck with CSS,
JM
mwengwe chitambo
73 Pointsthat actually worked thank you very much.
Jeff Muday
Treehouse Moderator 28,720 PointsHint-- href="http://www.google.com" in the tag rather than just href="www.google.com"
good luck, JM
mwengwe chitambo
73 Pointsthank you.just tried that, still no difference though
Tarran Prior
Courses Plus Student 3,169 PointsTarran Prior
Courses Plus Student 3,169 PointsHey, could you post the code please?