The hyperlink is unresponsive to clicks

My text is displaying in a different color, but when I try to click on it nothing happens. I must be doing something wrong with my HTML and CSS code, as I am new to this.

.column {
  float: left;
  width: 50%;
  padding: 10px;
  height:800px;
  text-align: center;
  color: white;
  position: relative;
 }

 .centered {
    position:absolute;
    top: 430px;
    left: 300px;
    width: 100%
}
<!DOCTYPE html>
<html>
<div class="row">
  <div class="column" style="background-color:#aaa;">
    <img src="4.jpg"alt="Snow">
     <div class="centered"><a href="http://www.google.com">Google</a></div>
  </div>

Answer №1

Below is the complete HTML code provided for your reference. To test it in SharePoint, you can insert the code into a script editor web part on a web page to see if it functions correctly.

<!DOCTYPE html>
<html>
<head>
    <style>
    .column {
        float: left;
        width: 50%;
        padding: 10px;
        height:800px;
        text-align: center;
        color: white;
        position: relative;
    }

    .centered {
        position:absolute;
        top: 430px;
        left: 300px;
        width: 100%
    }
    </style>
</head>
<body>
<div class="row">
  <div class="column" style="background-color:#aaa;">
     <img src="4.jpg" alt="Snow"/>
     <div class="centered"><a href="http://www.google.com">Google</a></div>
  </div>
</div>
</body>
</html>

If the hyperlink is still not clickable, you can use IE/Chrome F12 to inspect and troubleshoot any errors that may be preventing the link from functioning properly.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Move the footer down to the bottom of the page

I'm struggling to create a footer that consistently stays at the bottom of the page, regardless of the amount of content on the page. I've tried following various tutorials but haven't had much success. I'm starting to think I must be d ...

What is the best way to maximize the use of the space available until reaching a div with varying dimensions each time

I have a div on the left that displays a name, and it can vary in length. On the right, there is another div with buttons. The number of buttons may change, so I am unsure how many will be displayed. Is there a way to utilize only CSS to make sure the fi ...

Displaying data from a JSON object to a DOM table can be achieved by dynamically generating table columns based on the keys within

There is a JSON object that I'm working with: [ { "SysID": "4", "Defect Classification": "Wrong Image Color", "1": "3.0", "2": "", "3": " ...

.slideDown Not Functioning Properly on my System

After successfully linking my index.html file to jQuery, I am facing an issue with the .slideDown code. I'm not sure if there is a problem with the code itself or if I didn't attach jQuery correctly. Can anyone help me troubleshoot this? Below i ...

Python file is not able to show data on HTML table

I am having difficulty displaying the data retrieved from the database in an HTML table. store.py def book_list(): # Define the query for the DB query = "SELECT * FROM " + DBtable` ## Execute the query mycursor.exe ...

How can one choose an HTML element and then select another nested element using XPath?

Is there a way to target the div element "fc-event-time", and then select the next nested div element that is located at the same level? After identifying the text 1p - 2p within this snippet of HTML, how can I access the users' names? Here's t ...

The challenge with looping through JQuery using the .each method

Let's talk about a cool concept: I have this brilliant idea to create a jQuery script that can manage multiple forms. Each form will have a button, and when the button is clicked, the script should send all input field names and values via $_POST to ...

Issue with AngularJS pagination: unable to detect the current page number

I am currently developing a compact application that showcases a JSON object of "users" in an HTML5 table. The application is built using Bootstrap 3 and AngularJS, and I have the intention to implement pagination for this table. Instead of having an arra ...

Issues with Line Chart in D3: Scaling and Zoom not functioning as expected due to ClipPath limitations

I am utilizing D3 version 4 to process data and create a graph based on dates. Although I have successfully adjusted everything to be compatible with zoom functionality, I am struggling to prevent the line from extending beyond the chart axes. I would pre ...

Encountering difficulties connecting to the database within Vue data tables

My php script was working fine with vuetify data, but now every page is showing the error message: Your search for "{{ search }}" found no results. It seems like this issue occurs when the script cannot fetch data from the database. Here is my d ...

When using the HTML a tag, it can create unexpected gaps and

I have a sentence written in PHP that I've separated into individual word components using the explode function. foreach ($words as $splitword) { echo $splitword; /* echo "<a href = 'word.php?word=" . $splitword . "'>" . $spli ...

When dalekjs attempted to follow a hyperlink with text in it, the link failed to function properly

My goal is to retrieve an element from a list by clicking on a link containing specific text. Here is the HTML code snippet: <table> <td> <tr><a href='...'>I need help</a></tr> <tr><a href=&a ...

Creating an interactive PHP form for real-time data input

Can anyone provide guidance on creating dynamic PHP pages that do not require a refresh or reload when submitting form details? Here are some examples of where this is utilized: Stack Overflow (when posting questions/answers) Facebook (when updating sta ...

Ways to turn off default browser tooltip using bootstrap4 tooltip

Check out the code below, which demonstrates displaying both the bootstrap tooltip and the native title-attribute tooltip: This is an example of text with a tooltip using Font Awesome icon: <i class="far fa-question-circle" data-toggle="tooltip" title= ...

Easiest method to globally disable form autocompletion in an application without manually setting autocomplete off for every individual form

Is there a quick way to disable autocomplete in all forms within the application without individually adding "autocomplete=off" to each form? ...

Is it possible to influence IE Browser Mode to switch to Compatibility mode?

As I was examining my website, I made an interesting discovery. It appears correctly in Internet Explorer 8 and 7 when I include the meta tag <meta http-equiv="X-UA-Compatible" content="IE=9">, but in IE 9 and 10, the display is incorrect. However, w ...

placing advertisements within HTML5 videos

How can I add advertisements to an html5 video tag before the main video starts playing? Are there any open source tools available to simplify this process? Is there a reference guide that can help me with this? I have managed to get it working with the f ...

Using AJAX in JavaScript within an HTML document is a valuable skill to have

I have the following JavaScript function that I need to call the /print2 function without clicking any buttons. I attempted to use Ajax for this, but I am new to Ajax and JavaScript. Can you help me identify where the issue might be? Thank you... <scr ...

Delete the initial double line break and then switch the remaining double line breaks to single line breaks

I am facing an issue with some HTML content fetched from an external source. My aim is to specifically target instances of double br tags using jQuery. I want to delete the first occurrence of double br and convert all subsequent occurrences into single br ...

Adjust size of logo in navigation bar header

Having trouble resizing a logo within a navbar-header? Check out the code below: <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <spa ...