I am experiencing compatibility issues with my code in Chrome, although it works fine in Firefox and Edge. What could be the

My code is working fine in Firefox and Edge, but it's not displaying correctly in Chrome. Can anyone help me figure out what I'm doing wrong?

I am trying to create three boxes that should be displayed side by side across the full width of the div.

You can see how it looks in Firefox, and here is the rendering in Chrome.

I am new to coding so I might be overlooking something very obvious...

div.img2 {
    display: table-cell;
    border: 1px solid #ccc;
    width: 30%;
    margin: 5px;
}

div.img2:hover {
    border: 1px solid #72bf44;
    opacity: 0.8;
    filter: alpha(opacity=25);
}
div.img2 img {
    width: 50%;
    height: 50%;
    margin: 5px;
   display: block;
   margin-left: auto;
   margin-right: auto
}

div.desc2 {
    text-align: center;
}
.wrapper2{
    position:relative;
    overflow:hidden;
    margin-bottom:10px;
}
<div class="wrapper2">
<div class="img2" style="padding: 20px;"><a href="http://www.carritech.com/contact-us/general-enquiries/">
<img src="http://www.carritech.com/wp-content/uploads/2013/04/Enquiry.png" alt="General Enquiries" width="526px" height="526px" />
</a>
<div class="desc2">
<h3><strong><a href="http://www.carritech.com/contact-us/general-enquiries/">General Enquiries</a></strong></h3>
</div>
</div>
<div class="img2" style="padding: 20px;"><a href="http://www.carritech.com/request-a-quote/">
<img src="http://www.carritech.com/wp-content/uploads/2013/04/Quote.png" alt="Request a Quote" width="526px" height="526px" />
</a>
<div class="desc2">
<h3><strong><a href="http://www.carritech.com/request-a-quote/">Request a Quote</a></strong></h3>
</div>
</div>
<div class="img2" style="padding: 20px;"><a href="http://www.carritech.com/telecommunications-company-information/feedback/">
<img src="http://www.carritech.com/wp-content/uploads/2013/04/Feedback.png" alt="Customer Feedback" width="526px" height="526px" />
</a>
<div class="desc2">
<h3><strong><a href="http://www.carritech.com/telecommunications-company-information/feedback/">Leave Feedback</a></strong></h3>
</div>
</div>
</div>

Answer №1

Everything seems to be functioning well on Chrome as well. If you encounter any issues, try clearing the cache or opening the page in a private window:

Link to Image

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

What is the best way to iterate through an object using NgFor?

One scenario involves managing multiple students with various details such as name, email, phone, etc., along with a note object: { "_id" : ObjectId("5b9551a60e89ad15a8ff77fb"), "name" : "RICHE", "note" : [ { "subject" : " ...

Generating a dynamic triangle within a div while ensuring it fits perfectly with the maximum width

I need help with creating a responsive triangle on a web page that takes three inputs. The challenge is to adjust the size of the triangle so it fits inside a div element while maintaining the aspect ratio of the inputs. For instance, if the inputs are 500 ...

Tips for developing a sophisticated HTML quiz

I have spent countless hours perfecting this quiz. I have successfully created a quiz that reveals solutions at the end, but I want to take it one step further. I envision the answers appearing after each incorrect response from the user, and no answer sho ...

Getting rid of the upper boundaries and outlines of the Bootstrap table

React code: <div style={{paddingLeft: '8px', paddingRight: '8px'}}> <div className="-subtitle"> <div className="pull-right" style={{marginBottom:'5px' ...

Using HTML and CSS, change the background color to red based on the value of each cell in a forEach loop

Need help with my HTML/CSS code. I have a table where I need to change the background color of any row that has a cell value of "Not Approved" while using a foreach loop in Google Apps Script to send an email with two tables. What is t ...

Is it safe to exclusively use CSS Selector [type="text"] instead of input[type="text"]?

I've been pondering the safety of exclusively using [type="text"] instead of input[type="text"] in CSS. My concern is that when using input[type="text"], I'm unable to override it with a single class selector. // HTML <input type="text" clas ...

Step-by-step guide for embedding a Big Commerce website into an iframe

Can a website be opened inside an iframe? If not, is it possible to display a message like 'page not found' or 'this website does not allow data fetching in iframes'? <!DOCTYPE html> <html> <body> <h1>Using the ...

Converting HTML tables into R

I have a series of HTML files with static content containing tables. I need to extract a specific column (4th column) from each table. I am currently using R to extract the tables from the HTML, but it seems like the rows are being combined for that partic ...

HTML Files Can Only Interpret Style Attributes Within Elements

UPDATE: Just three days ago, my website looked flawless without any updates to the CSS or HTML. Suddenly, a few days back, I noticed that the styling of my website was completely off. It seemed like the browser decided to ignore my stylesheet and display ...

Get the number of elements that match your XPath expression

Currently engaged in an XML and XSLT project with a challenging task; the query requires me to count the number of open ports with a specific port number using the following path: liste_hotes --) hote --) liste_ports --) port num_p ...

What is the best way to move table data content to a new line?

I have a table that spans the entire width of the screen, with 3 <td> elements inside. The content in the 2nd <td> does not contain any spaces and is quite long, causing it to expand beyond its allotted 70% width and disrupt the layout. Is ther ...

The text and links should appear transparent against a gradient background; however, they are displaying in white

I am currently facing a small issue while working on my new website, www.dvpwebdesign.com. The problem arises in Internet Explorer (IE) when the intro page displays a repeated gradient background with text and links overlaid on it. While the layout works ...

What is the best way to reset the animationTransform using JavaScript?

Incorporating SMIL animations in Firefox is presenting a challenge for me. The animation starts automatically upon page load, but I need to find a way to trigger it dynamically through JavaScript. I suspect that the issue may lie with the begin attribute. ...

An engaging CSS3 animation that alternates between popping in and out, resetting after each item has been displayed

My project involves using a background image in the form of a map. I am looking to display a series of testimonials as absolutely positioned divs on this map, and have them appear and disappear one after another. Once all testimonials have been shown, I ne ...

Adding a PHP file into an HTML page using JavaScript include

Recently, I was assigned to collaborate with a third-party vendor who displays movie times on their platform. We were given the opportunity to co-brand our website on their platform by creating a wrapper for our site. This wrapper would allow the movie tim ...

Issue with Bootstrap CSS: Default color change not functioning properly on Mobile devices, although it works correctly on Desktop

This is my first website project, you can check it out at www.craigdoesdata.de to see the issue I'm facing with CSS. I apologize if this question seems obvious or if it has already been addressed (I have spent a considerable amount of time searching f ...

A step-by-step guide on how to implement a window scroll-controlled color transition

I've implemented jQuery code to change the opacity of my navbar's background as the user scrolls, transitioning from transparent to blue. Here's the snippet: $(window).scroll(function(){ var range = $(this).scrollTop(); var limit = 45 ...

Is it possible to incorporate a next.js image onto the background design?

I've encountered an issue while attempting to create a fixed background image with a parallax effect using Tailwind CSS and Next.js Image. If you need to see an example of this in action, check out this Template Monster theme. Here's the code s ...

Troubleshoot: Angular 2 Carousel not Showing up on Page

Having trouble understanding why my carousel component is present but none of the CSS or images are showing up. This is my app.component.ts file: import { Component } from '@angular/core'; // Import our Carousel Component import {CSSCarouselCo ...

Drag Bootstrap panels to the edge of the column

I need to position two panels in a column, with one on the left and the other on the right. Currently, they are not aligned properly, as shown in this image: https://i.stack.imgur.com/RU636.png The first panel should be moved to the left to align with the ...