I'm having trouble with my image links not working in Chrome, but they work fine in IE. What could be causing

My portfolio site has been successfully uploaded via FTP. However, I am facing an issue with the links in the 'latest work' section when viewed in Chrome. The first two links (Fine Art Site & Young Academy) function properly in Chrome, but the next two do not, even though they work fine in Internet Explorer.

I would appreciate any insights into this matter. Here is the code for that section:

<div class="latest_work">

    <h2>Latest Work</h2>
    <hr />

    <div class="grid_7">
        <h3>Fine Art site</h3>                  
        <a href="http://robert.young1.org/fineart.php"><img src="img/fine_art resized.png" width="317" height="200" class="grid_5"></a>
    </div>

    <div class="grid_7 omega" id="right">
        <h3>Young Academy site</h3>
        <a href="http://robert.young1.org/youngacademy.php"><img src="img/young_academy.png" width="317" height="200" class="grid_5"></a>
    </div>

    <div class="grid_7">
        <h3 class="grid_7">Pinner Walks site</h3>
        <a href="http://robert.young1.org/pinnerwalks.php"><img src="img/pinner_walks resized.png" width="317" height="200" class="grid_5"></a>
    </div>

    <div class="grid_7 omega" id="right">
        <h3>PSLK </h3>
        <a href="http://robert.young1.org/pslk.php"><img src="img/pslk resized.png" width="317" height="200" class="grid_5"></a>
    </div>
</div>

CSS:

.latest_work {
    margin-top: 220px;
}

.latest_work h3 {
    margin-top: 20px;
}

.latest_work img {
    color: #999;
    border: 2px solid #bbb;
    background-color: #f0eeed;
    opacity: .9;
}

.latest_work img:hover {
    opacity: 1.0;
    color: #666;
    border: 2px solid #ddd;
}

Thank you,

Best regards,

Robert

London, UK

Answer №1

The issue arises when the 'Other projects' section overlaps with the links due to lack of styling, creating a cluttered view.

Even after applying some styling, the problem persists as it is only slightly pushed downwards. A possible solution to this would be:

.grid_7{position:relative;z-index:999;}

Answer №2

tag, there are suggestions for improving the code. Firstly, it mentions that using id="right" multiple times is incorrect. It advises to utilize selectors correctly in the following code snippet:
.latest_work a:hover img{
   opacity: 1.0;
   color: #666;
   border: 2px solid #ddd;
}

Answer №3

Many times you neglect to properly close the <div> tag, which can lead to errors.

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

Turn on and off scrolling of DIV content when hovering over it

How can I create a div that automatically scrolls to the bottom on hover? I tried implementing the code below, but it doesn't work as expected. It jumps to the bottom of the div's height on first hover and transitions smoothly on second hover. . ...

When using jQuery's .appendTo() method in Internet Explorer, the images on the page may fail to render properly unless the browser

When using the jQuery functions .render() and .appendTo to display images and text on a webpage within a placeholder/template, I encountered an issue specifically with Internet Explorer. In IE, the images were not rendering automatically, instead displayin ...

Converting Uniquely Designed Photoshop Shapes into HTML

I am working on a project to design an HTML page that features a profile picture with a heart frame. I have the PSD file with the heart frame included. The profile pictures will be rectangular in shape and should fit behind the heart frame without overlap ...

Can you suggest some unconventional HTML/CSS attributes and tools for arranging a form in a way that results in a unique tab order?

As part of my role, I am tasked with transforming mock specs provided by our clients into custom web forms. Our application comes equipped with tools specifically developed to streamline this process. Recently, I was presented with a particularly intriguin ...

Having trouble integrating an HTML template using JavaScript

I am currently attempting to integrate the HTML code of my website using data-prototype: <div id="accordion" data-prototype=' <div class="card-body"> <textarea id="solution_answers___name___content" name=& ...

Create a stylish frame for a uniquely shaped picture

   Currently working on a team page for a company, looking to incorporate an irregular-shaped png image with a red border. The desired outcome should resemble the following:             https://i.sstatic.net/ba7ek.png The image provided fo ...

How to dynamically center content in a container div that extends beyond the edge of the screen? (Horizontal navigation design)

I have created a unique website layout with 6 sketches placed horizontally in div containers. I am not concerned about the navigation style affecting usability. To achieve this, I have organized the div sections to be relatively positioned from left to ri ...

A guide on aligning an object with the cursor position

In a 'open world' game setting, I have a simple sword image drawn pointing up, where the player can freely move around the world to all coordinates. My goal is to make the sword point towards the mouse cursor. One of the challenges I'm faci ...

Styling select drop-downs with CSS and Divs in HTML

Currently attempting to design a unique HTML select box using CSS and various divs and spans. Despite no apparent errors in the code, it seems like the functionality is not working. To view the code, check out this link <div class="ik_select episodes_ ...

Troubleshooting: Animation Failure in Image Cube

I recently started using the jQuery plugin Image Cube created by Keith Wood and I'm very impressed with its functionality. However, I'm encountering some difficulties trying to integrate it into my landing page design. Here is a test link on my ...

How can C be used to produce interactive HTML within an iPad application?

I am currently developing an iPad application that includes several complex tables with dynamic data. I believe HTML tables would be the best way to represent this data, but since the rest of the app is in C, I am wondering if it is possible to embed C cod ...

Learn how to alter the website's overall appearance by changing the background or text color with a simple click on a color using Angular

Is there a way to dynamically change the background color or text color of the entire website when a user clicks on a color from one component to another? I know I need to use the Output decorator, but how can I implement this? style.component.html <di ...

The content spills over when applying the Bootstrap Grid system

I am working on creating a display heading that includes images on both the left and right sides of the heading. The layout looks great on larger displays, but as I shrink the display size, the text in the heading overflows the column on the right, causing ...

Obtaining Sass using Node.js and the Git Bash terminal

I'm having difficulties with installing Sass via the command line. I prefer to use Visual Studio Code as my text editor. I am seeking guidance on how to download and integrate Sass into a web project. These are the steps I've taken in the comman ...

I've created a logo, but why are there two logos on my website?

There seems to be an issue with two divs stacking on top of each other, which is not the desired layout. This problem occurs when five div boxes are added. The goal is to have all divs in a single row, but it's unclear why this layout is not working ...

Placing text inside a fixed-width container using the CSS property "white-space: pre;"

Let me clarify if the title seems unclear. I am developing a Q&A application using NodeJS, MongoDB, and Express. Currently, I am working on the layout using CSS. There is a small textarea where users can submit text. Upon clicking the submit button, ...

Giving identification to a pair of elements located within the same column

Struggling with assigning IDs to two elements in a single column - a dropdown and a text element. Managed it in the first scenario, but encountering issues in the second one. Seeking assistance on this matter. Scenario 1: <td> <sele ...

When attempting to access "this.state" in the Chrome Sources tab, the result is an undefined value

Exploring the world of React and currently delving into tutorials on "The Net Ninja" YouTube channel for the Complete React Tutorial (& Redux). The focus so far has not touched on debugging in Chrome, leading to a bug where adding a new UI component to ...

Struggling to locate the origin of this mysterious border

After thoroughly inspecting and manipulating CSS, I am still unable to determine the source of this mysterious border... Mysterious Border Image - The Origin Unveiled Could someone take a look and provide some insights? It seems like the border is encom ...

transform selected rows into input fields

I am displaying data from a database in a table with checkboxes next to each row. I want to be able to edit the columns of checked rows by turning them into input fields when the edit button is clicked. Since I am new to jQuery and don't have a strong ...