The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> full page background image with CSS., Adding Hyperlink to full page background image with CSS.
post 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>
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;

<div class="bg"></div>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 16th February 2019 - 08:55 AM