r/csshelp • u/Naima_Sephina • Oct 13 '14
Need help making banner text clickable
http://www.reddit.com/r/Sephina/
Hello! I would like the text area in my banner clickable to redirect to the subreddit. Could anyone please help me out? I am not CSS savvy.
Thank you all so kindly in advance.
6
Upvotes
0
Oct 13 '14
[deleted]
2
u/gavin19 Oct 13 '14
Yes. Use the subreddit link that reddit supplies you in the header and put the image into that. The CSS you need depends on the image dimensions and the height of the header but the gist would be
.pagename a { position: absolute; top: 19px; right: 0; bottom: 0; left: 0; text-indent: -999em; background: url(%%img%%); } #header-img { position: relative; z-index: 1; }
3
u/gavin19 Oct 13 '14
You can use
to extend the existing subreddit link to cover that part of the header.