Give help. Get help.
I’m struggling with the :target property in pure CSS.
When I click on the first link the anchor goes to the top which is a normal comportment.
I’d like the content to stay still when :target is activated.
I tried with pseudo-elements even combining them with :target but was unsuccessful.
Thanks for your answers.
In pure CSS you can fight against it only by using some extra elements that have a fixed position: http://codepen.io/Merri/pen/cehAq
Thanks Merri, your a genius.
I’ve already tried with fixed position but not in that way.
Are you talking about the little bouncing the page does when you click your link?
That only happens in codepen. It won’t jump like that on a normal web page.
I don’t think so.
I first tried on a normal web page.
You must be logged in to reply to this topic.