What is causing the alignment issue of the four buttons in Internet Explorer?

I've been working on this page where the alignment of the 4 buttons "Take a Test Drive," "Lease To Own Options," etc. are off in IE but look fine in Firefox. Here's the HTML:

<div class="main-img-box">
                <img alt="Retail POS Systems" src="/images/software/video_pos_software.png">
                <div class="main-cont-software">
                <a href="/downloads/video_vision_download.php" class="video-testdrive rest_icons"><span></span></a>
 <a href="/lease" class="video-lease rest_icons"><span></span></a>
<a href="javascript:addBookmark('POSNation.com%20-%20Video%20Rental%20POS%20Systems',window.location);" class="video-bookmark rest_icons"><span></span></a>
<a href="/shop_pos/index.php?route=information/contact" class="video-ask rest_icons"><span></span></a>                  </div>
            </div>

And here's some relevant CSS:

            .main-img-box {
                height: 398px;
                position: relative;
                width: 100%;
            }

            .main-cont-software {
                bottom: 0;
                color: #FFFFFF;
                height: 76px;
                left: 14px;
                position: absolute;
                width: 100%;
            }

            .video-testdrive {
                background: url("../images/software/pos-sw-btn-video-testdrive.png") repeat scroll 0 0 transparent;
                display: inline-block;
                height: 57px;
                margin-right: 9px;
                width: 169px;
            }

            .video-lease {
                background: url("../images/software/pos-sw-btn-video-lease.png") repeat scroll 0 0 transparent;
                display: inline-block;
                height: 57px;
                margin-right: 9px;
                width: 169px;
            }

Does anyone have any suggestions as to what might be missing?

Also, can anyone recommend a good tool for testing in IE? I use firebug in Firefox with no issues, but Internet Explorer always seems to give me a hard time. Any tips would be appreciated.

Answer №1

To ensure alignment, make sure to include vertical-align: top ..once again.

.main-cont-software a {
    vertical-align: top;
}

For additional information:


If you are looking for a reliable tool to test in IE, consider using Developer Tools (press F12) which is built into IE8+.

If you need to test in IE6/7, you may need to download the tools. Alternatively, you can utilize Compatibility Mode in IE8/9 for testing in IE7.

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

Using Postgres array or JSON to display separate Bootstrap badges within an HTML document

Here is a snapshot from my live server: https://i.sstatic.net/sq83x.png In the image attached, I have been working on extracting information from arrays and JSON using Bootstrap. My goal is to display each value from the array or JSON in separate badges. ...

What is preventing the click function on a dynamically created button from being executed in jQuery?

Take a look at this jsFiddle where I illustrate my issue. Whenever I click on the "Add an ingredient" button, the button click event is triggered. My issue arises when I click on the "Create a subtitle" button because it dynamically creates "Add an ingredi ...

Rendering HTML with Apache Tiles using an empty <a></a> tag

Having encountered a peculiar issue with HTML lately. In my backend, the problematic section looks like this. <div class="content"> <a href="detail.html"></a> <img src="assets/i ...

Tips for creating a div that remains fixed when scrolling

What is a JQuery method to identify when a div goes offscreen and adjust its CSS to make it fixed position at the bottom of the window? ...

The JSON file is incomplete without its brackets

Exploring JSON format testing using Postman { "localTimeStamp": "2021-08-14T08:19:17.000Z", "ipAddress": "10.0.5.26", "subnetMask": "N/A", "defaultGateway": "N/A", "productType": "UNIVERGE BX9000", "versi ...

Designing a comprehensive window evaluator for color selection

Hey everyone, I'm excited to be joining this forum and it's my first time posting. While I have some experience in programming, particularly in HTML, I've recently encountered a new challenge. I'm interested in creating a full window c ...

Include an EventListener to detect any updates made to the innerHTML of a div element

Out of sheer curiosity, I am interested in receiving an event notification every time I insert HTML code into a div like so: const xData = 40; const container = document.querySelector('.container'); container.innerHTML = `<div class="co ...

validating file uploads in PHP

When it comes to uploading files in PHP, the code I am currently using looks like this: $image_name= $_FILES['file']['name']; $allowedExts = array("gif", "jpeg", "jpg", "png"); $temp = explode(".", $_FILES["file"]["name"]); $ext ...

AngularJS allows for the ng-view directive to showcase a dynamic footer element that is positioned outside of its

I am relatively new to using angular.js and I could use some guidance on the best approach to implementing the functionality described in this scenario. My HTML structure consists of a header, sidebar, and content area provided by <div class="container- ...

The body tag mysteriously disappears after the function is called within the $().html() command

As I delve into scraping the source code of a website, I encounter an interesting phenomenon. Initially, when I print out the complete source code, everything appears as expected. However, upon attempting to print an actual DOM, I notice a slight change i ...

Tips for filling in path shapes on SVG?

Just a few days back, I was handed an SVG file by some designers and my task is to integrate it with some color variations and the usual hover effects, /edit: but at this point, the most important thing is to have control over the background color /edit/. ...

The footer is anchored at the bottom on one page but mysteriously relocates to the center on the next page

I've been working on creating a footer for my Angular application and here's the code for it: // HTML <footer class="footer"> // code for footer </footer> // LESS .footer { position: absolute; bottom: 0; width: 100% ...

Issue with rendering SVG <g> element in Backbone view

I'm currently developing an application with Backbone and running into issues with a view where the "el" property is a dynamically created <g> element. Here's the code snippet for the view: var DependencyLineView = Backbone.View.extend({ ...

Loop through the <li> elements and use jQuery to update the text

Check out this HTML setup: <div class="mydiv"> <ul> <li>Text 1</li> <li>Text 2</li> </ul> <ul> <li>Text 3</li> <li>Text 4</li> </ul> <ul> < ...

Adjust the height of a div to match the tallest element in the same row using jQuery and Javascript

I need to display multiple rows of products, each row containing 4 products. The code snippet below shows an example with only 1 product. To create a row with 4 products, the code for <div class='col-xs-6 col-sm-3 col-md-3'> needs to be rep ...

Tips for adjusting the range slider's increment by selecting a radio button

There are two radio buttons and multiple range sliders available. Each radio button has a distinct value assigned to it. The desired functionality is that when one of the radio buttons is clicked, the maximum value should change (from 12 to 24 or from 24 ...

Incorporate VLC player into a webpage without any visible control options

Is there a way to embed a flash video in a webpage without showing any controls? I managed to embed a flash video using VLC with the following code: <embed src="img/Wildlife.wmv" height="480" width="640"> However, I want the video to play without ...

What is the best way to increment the value of an input by any number using JavaScript and HTML?

My code is causing a NaN error, and I'm struggling to identify the root cause. Even providing a specific number in the addnum function did not resolve the issue. <script> var result = document.getElementById("result"); var inputVal = ...

I have created a Joomla Template that incorporates my own CSS through JavaScript. Is there a method to include a distinct version tag to my custom CSS file, such as custom.css?20180101?

My usual method involves adding a unique tag to the css path in the html section, but my template is incorporating custom CSS through Javascript: if (is_file(T3_TEMPLATE_PATH . '/css/custom.css')) { $this->addStyleSheet(T3_TEMPLATE_URL . &apo ...

What could be causing the AngularJS directive for width not to function properly when switching between Bootstrap tabs?

Having implemented two Bootstrap tabs on a single page, with each tab displaying a list of items, I wanted to ensure that each list item appeared as a square. To achieve this, I created an AngularJS directive which sets the height of each list item equal t ...