IE8 does not respect the use of display:none

I am dealing with a particular markup present on a page within an iframe, and unfortunately I do not have direct access to it. The other code on the page is irrelevant so I haven't included it here.

My only means of targeting this code is through CSS.

I have attempted to hide the close button by adding the following line to the CSS file:

img[alt='Close'] {display:none !important;} 

This is the actual markup:

<td align="center"><a href='javascript:window.close()'><img src='v/vspfiles/templates/100/images/buttons/btn_close.gif' alt='Close' border=0></a></td>

The CSS rule works as expected in all browsers I've tested (Firefox, Opera, Safari), but in IE8 it seems to be ignoring the CSS and displaying the button. I'm unsure if there's an issue with the selector or possibly a syntax error.

I'm at a loss for how to proceed from here.

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

Tips for Maintaining White Space and Line Breaks in Django

Currently, I am working on a project where I aim to showcase a user's code. My approach involves utilizing Django's forms. However, upon submitting the form, the whitespace and line breaks do not seem to be preserved in the output. I would great ...

Adjusting background position using incremental changes through JavaScript

Although I have a strong background in PHP coding, using javascript is a new venture for me so I hope this question doesn't sound naive. My objective is to create a button that, when clicked, shifts the background-position of a specified DIV object b ...

Trouble encountered in aligning two DIVs in a horizontal position

I have been through numerous discussions on the same problem, but none of the solutions seem to work in my case. I am currently working on a section of my website that has 3 small boxes, each containing an image on top and text below. The issue arises when ...

Tips on applying a border to an HTML tr

Imagine I have created a table like this: 1 Chailie 23 Joker Bass 2 Chailie 23 Joker Bass 3 Chailie 23 Joker Bass 4 Chailie 23 Joker Bass 5 Chailie 23 Joker Bass 6 Chailie 23 Joker Bass Now I wa ...

Is it possible to update the background image of my iframe video?

I'm looking to customize the play button on a video displayed through an iframe on my website. Here is the code snippet I've been working with: .ytp-cued-thumbnail-overlay-image { background: url(https://www.example.com/images/video-play-butt ...

The true meaning of CSS3 transition is often misconstr

I'm trying to create a simple linear transition effect, but for some reason it's not working. Any suggestions on what might be causing the issue? HTML <div class="button-modern" style="background-color:#e73032"> <span style="color: ...

CSS - vertical and horizontal lines vary in thickness depending on the design

I am working on creating a grid that is automatically generated in my Angular 2 application. Currently, it consists of 1px wide divs as vertical lines and 1px high divs as horizontal lines. However, there seems to be an issue with inconsistent thickness be ...

Texture overlay on a Bulma video background

Is there a way to create an overlay on a background video without covering other components? I want the components to remain visible and on top of everything else, with the background video in the far background, followed by the texture layer, and everyth ...

Adjust the overflow behavior of the parent element - choose the desired

I am currently utilizing a plugin for my select html element, which can be found at While the plugin is functional, I am encountering issues when using it within an element with the style overflow: hidden, as it only displays a portion of the select optio ...

Here is a unique version: "A guide on centering a carousel item in jquery upon being clicked."

Does anyone know how to center the item I click in a carousel? I've searched high and low for a solution but couldn't find a clear answer. Can someone please assist me with this? This is what I have tried so far: http://jsfiddle.net/sp9Jv/ Here ...

The right alignment for ul and li styles is recommended for a cleaner appearance

Here is the fiddle provided below: http://jsfiddle.net/Fx9rA/ <div id="wrap"> <ul id="accordion"> <li> <h2 id="first">CMT</h2> <div class="content"> ...

Issue with CSS :hover not working due to jQuery altering CSS properties

My website has a specific set of <p class="first"> elements that change background color on hover using CSS. <div id="row_1"> <p class="first">first_1</p> <p class="first">first_2</p> <p class="firs ...

Reduced width for dynamic website design

As I work on developing a responsive website, I've encountered an issue where only 50% of the screen is filled with content when viewed in mobile mode, leaving the rest as white space. Can you shed some light on why this might be happening? https://i ...

The Bootstrap 4 navigation bar item unexpectedly jumps below and then wraps around

I am working on creating a navbar using the latest version of Bootstrap 4 (alpha6). <nav role="navigation" class="navbar navbar-light bg-faded"> <a class="navbar-brand" href="/"> <img src="/public/img/logo.png" height="36" alt="myLogo"&g ...

"Step-by-Step Guide to Dividing and Centering Text Sections with Dynamic

Initially, my intention is to implement the concept outlined below. The webpage has dual potential states. In the first scenario, two texts (with potentially varying lengths) are centralized together as a header. When transitioning to the second state, the ...

Bootstrap tab toggling with checkbox

I'm attempting to create tabs with the ability to include checkboxes, but when using data-toggle="tabs", the checkbox functionality seems to be disabled. Here is the link to my fiddle. Is there a solution to make the checkbox work within the tab tog ...

tips for preventing the automatic "pop-up and vanish" action of the HTML video control bar

Is there a way to prevent the control bar of a video defined by the <video> tag in HTML from automatically showing every time it's loaded in the current window? I want the control bar to only appear when I hover over the video. Any simple soluti ...

Column-oriented and Slim-fit packaging

I have been working on designing a layout with a fixed height that will display multiple columns of specified size to accommodate flowing text. While I have successfully implemented this, I am facing an issue where the enclosing div does not adjust its siz ...

Issue with Chrome's webkit causing images to display incorrectly in slideshow

After researching the issue with webkit browsers and images, I came across a problem that I haven't been able to find a solution for yet. I developed a slideshow using jQuery that arranges images in a row and uses a mask element (with overflow: hidde ...

HTML - The navigation bar will shrink in size as the user scrolls down on the page

Can someone help me create a navbar similar to the one on this website? Example I'm looking for a navbar that sticks to the top of the page and shrinks as the user scrolls. Any assistance is greatly appreciated! ...