I am experiencing an issue where the :hover effect does not seem to work correctly when I include the "a" tag

Upon observation, I have encountered an issue where I am unable to click on the a tags to navigate to another page. It seems like the :hover function is also not working in this scenario. I am relatively new to HTML CSS and despite spending hours trying to troubleshoot, I am struggling to identify the problem. I suspect it might involve clear:both or something related to positioning, but I can't seem to pinpoint the exact cause. I have attempted to comment out nearly everything without success. Any help from you experts would be greatly appreciated. Apologies if this is considered a beginner question.

html{
    height:100%;
}
...
    <div class="container">
        <div class="left-side">
            <img src="/IMAGES/insys-icom-logo.webp" alt="logo">
            <h1 id="Slogan">Your <span class="expert">digitalisation expert</span> for industrial data communication</h1>
            <p>With our core competencies of <span id="områden">remote maintenance, remote control, status monitoring and data networking,</span> we form the secure bridge between IT and OT.</p>
            <button id="toppsäljare">Best sellers</button>
        </div>

        <div class="right-side">
            <div class="container-nav">
                <nav>
                    <ul>
                        <li><a href="#"></a>SHOP</li>
                        <li><a href="/HTML/contactpage.html"></a>CONTACT US</li>
                        <li><a href="#"></a>ABOUT US</li>
                        <li><a href="#"></a>FIND US</li>
                    </ul>
                </nav>
            </div>
            <video id="turbin" src="/IMAGES/turbin wide.mp4" alt="turbinevideo" autoplay loop muted>
        </div>
    </div>

Answer №1

You may be facing an issue due to incorrect structuring of the HTML links.

<ul>
   <li><a href="#"></a>SHOP</li>
   <li><a href="/HTML/contactpage.html"></a>CONTACT US</li>
   <li><a href="#"></a>ABOUT US</li>
   <li><a href="#"></a>FIND US</li>
</ul>

For instance, the text "CONTACT US" should be placed between the opening and closing anchor tags in your code. Currently, you have empty anchor tags.

Here is an example of properly structured code for comparison:

<ul>
  <li><a href="#">SHOP</a></li>
  <li><a href="/HTML/contactpage.html">CONTACT US</a></li>
  <li><a href="#">ABOUT US</a></li>
  <li><a href="#">FIND US</a></li>
</ul>

Make sure to place the text within the opening and closing anchor tags as shown above.

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

I need assistance with displaying this array either using CSS styling or in table format. Can someone please

Seeking assistance to display this data in table format using tables, css, or bootstrap. Can anyone help? Utilized PHP Code: $url = "http://some-website.com/api/message"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $content = cur ...

Tips for dynamically updating the URL based on a query string within the URL

Here is a table generated by GridView: <table id="ctl00_centerContent_GridView1"> <tr> <th scope="col"> <!-- COLUMN INFORMATION --> </th> </tr> <tr> ...

Creating a CSS grid with uniform row heights, each adjusting independently

I'm currently working on creating a CSS grid for a product display. My goal is to have rows with equal heights, but each row should adjust its height based on the tallest column within that specific row. Right now I have all rows set to be the same he ...

Looking for guidance on integrating Forms with VueX and script setup? Are you utilizing v-model in your implementation?

UPDATE: I'm contemplating whether or not to abandon VueX entirely due to its outdated status, with Pinia being the preferred choice nowadays. Can someone confirm this? https://stackblitz.com/edit/vue-script-setup-with-vuex-hmrk5d?file=src/store.ts ...

Tips for creating a dynamic inner DIV that follows the scroll position of an outer DIV without relying on a fixed width

I have created a series of DIV elements to represent a chart. The key element is everything enclosed within the "rightPanel" section in the following code snippet. The "topPanel" section has an absolute position, and its top value (top: 0px) needs to be a ...

Tips for Positioning a Page Layout in the Center Using HTML and CSS

I'm a beginner in HTML and CSS and I'm trying to create a simple webpage layout from scratch. I want all the elements of the page (nav, header, section, footer, etc.) to be centered while still keeping the nav bar on the left side. I've set ...

Body Zoom Browser

My website features buttons for zooming in and out, labeled as A + and A-. I wanted to make sure that the entire body of the website could be magnified easily. That's why I came up with this code: <html> <body> <style> .cont ...

Is there a way to fix the close button on the menu so that it works more than once?

I have developed a JavaScript-powered navbar, but I am facing an issue with the closing button. It seems to work only once. If I try to open and close the menu repeatedly, the closing button stops working. I suspect there might be an error in my code, but ...

Updating the functionality of one-page scrolling - changing to overlap instead of sliding upwards

Hello, I am currently utilizing a JavaScript library to create a website with full page scrolling. If you want to know about the library, check out this link: For those interested, here is an example of my work on jsfiddle: http://jsfiddle.net/aLjLjxux/ ...

Obtaining a background image within a keyframe

I have been experimenting with keyframe animations and am looking to incorporate multiple images into the animation. Specifically, I want to switch out the image every 10% increment to depict someone running. Despite my efforts to use a background-img in ...

Struggling to access a JSON file using Angular framework

I'm currently working with the following JSON and controllers: JSON Format: {"tomcatLogDir":"C:\\apache-tomcat-7.0.70\\logs","tomcatLogs":["1.log","2.log","3.log"]} Factory: app.factory('filesFactory', [ '$http&a ...

The specified virtual host URL could not be located

After setting up LAMP on a new EC2 server, I was able to access the default Ubuntu webpage via the public IP address loaded by the apache server. However, my trouble began when I decided to create a new directory named test next to the original html direc ...

Navigating the complexities of applying CSS exclusively to child grids within Kendo Angular may seem challenging at first

This image illustrates the grid layout I have created an angular UI using kendo that features a nested grid. I am trying to apply CSS specifically to the child grid without affecting the parent grid. However, no matter what CSS I write, it ends up being a ...

What is the process for obtaining an HTML form, running it through a Python script, and then showcasing it on the screen

I am inquiring about the functionality of html and py script. .... The user enters 3 values for trapezoidal data from the html form: height, length of side 1, and length of side 2, then clicks submit. The entered values are then sent to be calculated using ...

Align the central element in the Bootstrap menu between two other elements

My menu layout looks like this : .navbar { box-shadow: 0 5px 15px rgba(0, 0, 0, .15); background: #fff; border: 0; max-height: 73px } .navbar-center>span>a { display: inline-block; position: relative; } #header>.navbar>div:nth-child(2)> ...

Centrally aligning elements within a responsive row using Bootstrap's adaptive row class

I have a variety of elements on my page that need to be displayed in straight columns, with multiple images aligned horizontally and vertically. Each image has the same size and when clicked, an icon menu with three items appears in its place. As the numb ...

Applying CSS to replicate the vintage iPhone app icon design

I've been searching online for days, but I can't seem to find any helpful resources on how to use CSS3 to style the old iPhone app icon. My goal is to apply a CSS3 style to this curved line, with a fallback option in case older browsers don&apos ...

Animating a SVG element within a group tag using the path element

I'm struggling to make a slice of a circle rotate using the :hover selector in CSS. Even though my initial attempt at applying CSS transformations works perfectly, the rotation stops when I introduce the :hover selector. Below is the HTML and CSS co ...

What methods can I use to adjust the selected option according to the value in the database?

To introduce you to my work, I have a table filled with data from a database that functions as a CRUD - Create, Read, Update, Delete table. Within this table, there is a column where EDIT and DELETE buttons are located. Clicking on the EDIT button trigger ...

Submitting Form Data from Multiple Dropdown Boxes using PHP $_POST

I have been using multiple dropdown boxes with data from a MySQL database, but I have encountered an issue when trying to $_POST the information. Below is the code snippet I am using: <?php try { $dbo = new PDO('mysql:host=' . $dbhost_n ...