Navigation menu and ribbons malfunctioning on Internet Explorer

Currently facing two issues in Internet Explorer. The first involves my navigation menu where the links are stacking vertically instead of horizontally on the bar. Below is the code for the nav menu.

HTML

<div class="main-navigation" role="navigation" style="margin-top: 5px;">
<div class="nav-menu"><ul><li class="page_item page-item-8"><a href="http://tshirthideout.com/design-your-own/">design your own</a></li><li class="page_item page-item-10"><a href="http://tshirthideout.com/fan-photos/">fan photos</a></li><li class="page_item page-item-12"><a href="https://tshirthideout.com/win-a-free-t-shirt/">Win a free T-shirt</a></li></ul></div>
</div><!-- #site-navigation -->

CSS

.main-navigation li {
    margin: 0px 20px 0px 0px;
    position: relative;
    text-align: center;
    padding: 7px 0px;
}

    .main-navigation li ul {
        display: none;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 100%;
        z-index: 1;
    }
    .main-navigation li ul ul {
        top: 0;
        left: 100%;
    }
    .main-navigation ul li:hover > ul {
        border-left: 0;
        display: block;
    }
    .main-navigation li ul li a {
        background: #efefef;
        border-bottom: 1px solid #ededed;
        display: block;
        font-size: 11px;
        font-size: 0.785714286rem;
        line-height: 2.181818182;
        padding: 8px 10px;
        padding: 0.571428571rem 0.714285714rem;
        width: 180px;
        width: 12.85714286rem;
        white-space: normal;
    }
    .main-navigation li ul li a:hover {
        background: #e3e3e3;
        color: #444;
    }
    .main-navigation .current-menu-item > a,
    .main-navigation .current-menu-ancestor > a,
    .main-navigation .current_page_item > a,
    .main-navigation .current_page_ancestor > a {
        color: #cb0000;
        font-weight: bold;
    }

The second issue pertains to the ribbons I have for titles in the sidebar. The right bottom flap that gives it the wrap-around look is not displaying properly.

HTML

<div class="ribbon"><strong>SPECIAL OFFERS</strong></div>

CSS

.ribbon {
padding-bottom: 7px;
padding-top: 8px;
    padding-left: 3px;
    color: #fff;
        text-shadow: 1px 1px 0px #c1c1c1;
        font-size: 15px;font-family:'Century Gothic',futura,'URW Gothic L',Verdana,sans-serif;
        letter-spacing: 5px;
position:relative;
    width:267px;

    right:0px;
    top:19px;
    background-color:#212121;
-moz-border-radius:2px 0px 0px 2px;  /*radius of 2px*/
-khtml-border-radius:2px 0px 0px 2px;
-webkit-border-radius:2px 0px 0px 2px;
-webkit-box-shadow: -2px 2px 4px rgba(50, 50, 50, 0.35);
-moz-box-shadow:    -2px 2px 4px rgba(50, 50, 50, 0.35);
box-shadow:         -2px 2px 4px rgba(50, 50, 50, 0.35);
}
.ribbon:after {
    content:'';
    width:0;
    height:0;

    border-color: #000 transparent transparent #000;
    border-style:solid;
    border-width:5px 5px;

    position:absolute;
    right:0;
    bottom:-10px;
}

This code functions correctly in other major browsers but encounters issues in IE.

Answer №1

To address the initial problem, it is recommended to insert zoom: 1; and *display: inline whenever display: inline-block is used in IE browsers.

.main-navigation div.nav-menu > ul {
        border-bottom: 1px solid #ededed;
        border-top: 1px solid #ededed;
        display: inline-block !important;
            *display: inline
            zoom: 1;

        text-align: center;
        width: 100%;
    }

    .main-navigation li a,
    .main-navigation li {
        display: inline-block;
            *display: inline
            zoom: 1;
        text-decoration: none;

    }

Information from the reference link you shared

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

Issue with Bootstrap 4 Navigation Bar Toggle Functionality Resolved

I am experiencing an issue with my responsive nav bar code from Bootstrap documentation. When I resize the browser window to mobile size in Chrome/Safari, the toggle dropdown feature does not work as expected. <nav class="navbar navbar-expand-lg navb ...

Inconsistencies in spacing between shapes bordering an SVG Circle using D3.js are not consistent across platforms

After creating a SVG circle and surrounding it with rectangles, I am now attempting to draw a group of 2 rectangles. The alignment of the rectangle combo can either be center-facing or outside-facing, depending on the height of the rectangle. However, I am ...

JavaScript mouse and touch movement events (mousemove, pointermove, touchmove) are not always accurate

I'm currently working on developing a JavaScript whiteboard and have implemented the following code: let lastTimestamp = 0; const fps = 1000/60; document.addEventListener("pointermove", moveMouse, false); function moveMouse (e) { e.preve ...

Create a darker background for white text using CSS

Looking to showcase multiple images within cards with text overlay. These images are user-uploaded and can vary in color, so the white text must be solid without any transparency issues like in the sample fiddle provided. Check out this example fiddle - h ...

Ways to verify if one div in jQuery contains identical text to another div

I need help with a jQuery script to remove duplicate text in div elements Here's the requirement: If div1 contains the text "hi" and div2 also contains "hi", then div2 should be removed Below is my current code snippet: <script src="https:/ ...

The footer is being obscured by the sidebar

#contents { width: 1100px; margin-left: auto; margin-right: auto; } #sidebar { padding: 10px; position: sticky; top: 20px; left: 10px; width: 150px; border-right: 1px solid black; float: left; } #main { padding: 15px; margin-left: ...

The distinction in the CSS Top Property behavior between Internet Explorer and Firefox

I've been searching for the answer to this question everywhere, but I haven't found a solution yet. The browsers I have been using for testing are: Firefox 3.6.8 Internet Explorer 6.029 I am trying to create a box and position it using the CSS ...

CSS - Resizing Images

I am experiencing an issue with the width of an image on my website. I want it to span 100% of the browser frame, but it is currently limited to only 1000px wide. Please take a look at: The image in question is located at the top of the page. Is there a ...

Using absolute positioning on elements can result in the page zooming out

While this answer may seem obvious, I have been unable to find any similar solutions online. The problem lies with my responsive navbar, which functions perfectly on larger screens. However, on mobile devices, the entire website appears zoomed out like thi ...

Tips for including numerous hyperlinks in a single row for a website's navigation menu

I need assistance in creating a navigation bar for my website that includes multiple headers with links. I am not sure if the issue lies within my CSS, HTML, or both. Can someone please help me troubleshoot? index.html <!DOCTYPE html> <html> ...

Finding a page element based on its title attribute in Selenium and Java

My goal is to locate and click on an image with the word "Collector" in its title. Below is the HTML code for the image and its link: <a href="javascript:*command*" title="Level III: KPI Collector RYG of D D/Testing - SYS"> <img src="*unusable l ...

Issues experienced with jQuery UI while attempting to implement nested drag and drop functionality

I recently created a nested drag-and-drop feature using jQuery UI, but I'm facing an issue where I can't drop items outside the .drop-container div. Here is the link to the jsfiddle for reference: FIDDLE When I try to drag an item and drop it i ...

Is it possible to apply search filters within a child component in Angular?

I have a situation where I am passing data from a parent component to a child component using *ngFor / @input. The child component is created multiple times based on the number of objects in the pciData array. pciData consists of around 700 data objects, ...

My website is experiencing issues with the inner border being transparent and not displaying correctly

I have encountered an issue where the inner border only appears transparent on a single page or JSFiddle, but for some reason it is not working on my website. Can anyone offer any assistance on what might be causing this problem? The border is displaying ...

Looking to convert a JSON file to an Excel file using JavaScript and HTML? Learn how to upload and transform your data with ease!

I am looking for a way to upload and convert JSON files containing information such as: [ { "First Name": "Paul", "Last Name": "Craig", "Gender": "Male", " ...

Having trouble with getting text centered in a div using 'vertical-align' property?

Can't seem to figure out why my text is not vertically aligning in the div. Here's the code I have: <div class="container"> <p>Hello world</p> </div> Accompanied by the following CSS: .container{ width: 100%; ...

What is the best way to create a timer using JavaScript?

I'm looking for a reverse timer to track session timeout. I found a code on codepen that works as a clockwise timer, but my attempts to make it counterclockwise have failed. Can someone please suggest a solution? I want the timeout to be either 1 hour ...

Leveraging Laravel's bootstrap CSS to aesthetically enhance a specific section of a webpage

I'm attempting to utilize the default bootstrap css (app.css) provided by Laravel to style a specific section of my webpage - namely, the form section on my registration page. Instead of adding app.css directly to my html header and affecting other a ...

Cleaning up HTML strings in Angular may strip off attribute formatting

I've been experimenting and creating a function to dynamically generate form fields. Initially, the Angular sanitizer was removing <input> tags, so I discovered a way to work around this by bypassing the sanitation process for the HTML code stri ...

Modifying form data when submitting a form

Is there a common or widely-used method for modifying or adding form values before they are serialized and sent to the server upon form submission? I'm looking for a way to change or add these values without having to recreate them. I've come ac ...