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 trialSophie Benacerraf
Front End Web Development Techdegree Student 4,541 PointsAdding footer navigation content
I'm trying to add footer links to my page but ONLY when in the page is displayed on a desktop. I've got the text added using the :after selector, but am having a hard time styling it and turing the texts into links. How would you suggest going about this?
1 Answer
Steven Parker
231,261 PointsI couldn't look at your link, it's apparently restricted to folks enrolled in your same program. But just in general...
I don't think you can create links that aren't there already just with styling. But what you can do is place the links in your HTML and the use styling to hide them (or display them as just text) in the cases where you don't want them shown or active.
The alternative would be to use JavaScript which would enable the creation and deletion of HTML elements and/or the direct manipulation of their properties.