full page background image with CSS., Adding Hyperlink to full page background image with CSS. |
full page background image with CSS., Adding Hyperlink to full page background image with CSS. |
kl2017 |
Oct 30 2017, 08:42 PM
Post
#1
|
Group: Members Posts: 1 Joined: 30-October 17 Member No.: 26,520 |
How do I add a hyperlink URL to the image being used as a CSS full page background image?
Where does the url hyperlink get inserted? And what is the correct coding? <!DOCTYPE html> <html> <head> <style> body, html { height: 100%; margin: 0; } .bg { /* The image used */ background-image: url("index.png"); /* Full height */ height: 100%; /* Center and scale the image nicely */ background-position: center; background-repeat: no-repeat; background-size: cover; } </style> </head> <body> <div class="bg"></div> </body> </html> |
Lo-Fi Version | Time is now: 17th April 2024 - 06:06 PM |