Issue with JQuery slideDown not rendering correctly in Internet Explorer

I have implemented a fantastic jQuery slide down effect on this website:

If you visit the Services or Team sections, you can click on any panel to expand a 'more info' box. Clicking again will close the box.

The issue I am facing is with Internet Explorer (version 7), where the first panel called 'About' is not behaving like the other panels. It slides below the parent div and does not seem to be applying the 'position:fixed' CSS style like the rest of the panels.

Moreover, the content in this panel is invisible.

I have been struggling with this problem for a couple of weeks, and it's driving me crazy. I can't understand why it works perfectly in all other browsers except IE(7) and why only the first panel is affected.

If someone could review the code quickly and point out what I may have missed, I would greatly appreciate another pair of eyes!

Thank you so much,

G

PS: I believe the jQuery code can be optimized, but I'm still learning!

Here is the relevant code:

HTML:

<div class="our-services">
    <strong class="slogan main-strap">Property Investment for Private Equity</strong>

    <span id="services" class="scroll">&nbsp;</span>

    <h2>Our Services</h2>

    <p>We are a UK &amp; European Property Investment and Asset Management Business, dedicated to generating value and providing real returns to our investors in any environment.</p>
    <ul class="services-list">

        <!-- Panel 1 -->
        <li class="slide1">
            ...
        </li>

        <!-- Panel 2 -->
        <li class="slide2">
            ...
        </li>

        <!-- Panel 3 -->
        <li class="slide3">
            ...
        </li>
    </ul>

    ...

CSS:

li.slide1, li.slide2, li.slide3 {cursor:pointer;}

...

/* Styling for text boxes */
.Text1, .Text2, .Text3 {
    display:none;
    margin-top:24px;
    background-color: white; 
    position:fixed; 
    top:215px; 
    width:860px; 
    height:323px; 
    padding:20px; 
    border: 1px solid #e6e6e6;
}

...

JS:

$('.slide1').click( function() { $('.Text1').slideDown(500).fadeIn(500);
...   
}

Answer №1

After much frustration, I've finally discovered a clever workaround.

I've started using a jquery plugin called 'curvycorners' for creating rounded corners. It's really neat - just assign the class "round" to any element you want to have rounded corners and you're good to go.

The only downside is that Internet Explorer struggles with it and can get a bit confused, adding a class of "drawn" and a position relative to the first div it finds with the class "round."

To solve this issue, I simply added a hidden dummy div with the class "round" before the first actual element that needs rounded corners. And voila, problem solved!

I hope this little trick helps someone else facing the same odd situation! ;)

Many thanks,

G

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

An error occurred while trying to retrieve a resource from the bower_components directory using Vue.js CLI

I encountered an error in my project when trying to reference CSS and JS files. Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/bower_components/bootstrap/dist/css/bootstrap.min.css This is how my file ...

Collaborating on interactive client and server content across JSP's

I've been researching the capabilities of JSPs extensively, but have yet to find a clear answer to my specific problem. Currently, I am developing a web application that utilizes a single JSP (with an imported CSS) to create a website with various fu ...

What is the significance of the "#" character in the URL of a jQuery mobile

As I encounter a strange issue with my jQuery mobile page, I notice that when accessing page.php everything looks good, but once adding #someDetailsHere to the URL, it only displays a blank white page. What could be causing this and how can I resolve it? ...

Adjusting the width of images in Bootstrap is proving to be a challenge

Check out this website. There is an advertisement image below the navigation bar. I am having trouble adjusting its width. I want the image to expand and fill the empty white space. I've attempted using relative and absolute positioning, but the width ...

Centralized spinner within the modal, not the web page

In my Bootstrap modal, I have a button that triggers the appearance of a spinner. However, the spinner is currently centered within the modal itself. This means that if I scroll the modal, the spinner also moves along with it. My goal is to have the spinne ...

generate a new entry at the end of the list

I have a list and I am attempting to generate an element when the last row is clicked. It's a bit hard to explain, so here is the link to the jsfiddle: http://jsfiddle.net/ckgL3zxd/4/ When you click on the last row, you will notice that the element w ...

Exploring the concept of passing 'this' as a parameter in JavaScript

<button type="button" aria-haspopup="dialog" aria-controls="b" onclick="openLayer($('#b'))"> button</button> <div role="dialog" id="b"><"button type="button">close<"/button></div> function openLayer(target){ ...

Steps for sending a POST request to an API with an extensive amount of fields (50 or more)

Struggling with a complex API call that involves submitting all the form data. Finding it difficult to determine the most effective method for sending the serialized data to the API endpoint. One option is to gather all field values into a JavaScript ob ...

Unlimited image rotation with JQuery

I'm currently working on a project where I have a series of images that are moving left or right using the animate() function. My goal is to create a loop so that when the user clicks "next", the last image transitions to the first position seamlessly ...

Help! My HTML/CSS (Bootstrap) text won't center properly. Can anyone assist me?

My text doesn't seem to be centered on the page, despite using the "text-center" class for the caption text. What am I missing here? <div class="text-center"> <h1>Evelyn Lauder </h1> <h5 class="font-italic"> 1936-2011</ ...

What is the best way to ensure that all my table images are uniform in size?

Despite creating a table with images all sized 150x150px, I am encountering some inconsistencies where certain images appear larger or smaller than others. Interestingly, when I input the code into JSFiddle, everything appears to be working properly. Howe ...

Unable to adjust image size on an HTML page with the bootstrap carousel feature

Struggling to resize images on my webpage as they are displayed in full size. Utilizing Bootstrap 4 carousel component but experiencing non-responsive images. .carousel-item { width: 100%; height: auto; object-fit: cover; } The code for the ...

Improving CSS performance in React Styled Components

Which method is more efficient and why? I have heard that the css method in Styled-components can be resource-intensive. I am curious to know if using multiple nested ${(prop) => {}} functions is more costly compared to a single function with the css m ...

Challenging glitch in the JavaScript code

My jQuery code seems to be functioning properly in online text editors like Fiddle and StackOverflow snippets. However, when I try to implement the same code in Brackets or view it on GitHub, the navbar scroll down animation fails to work as expected. You ...

Discover the best way to retrieve attribute values using jQuery

I'm struggling to retrieve the value of the attribute "_last_val" from my input, but I'm having trouble getting it. Here is what I have attempted: demo // Here is the HTML code <form method="post" action="" id="feedback_form"> <inpu ...

Having EventListeners set up across a single CSS class returns null when applied to different types of elements simultaneously

I want to create floating labels that resize dynamically when an input is clicked, similar to modern forms. I am using vanilla JS exclusively for this task. Currently, the setup works with the <input> tag. However, it does not work with the <text ...

Remove the whitespace between the <h2> element and the CSS animation

Is there a way to remove the space between h2 and the animation in the following code snippet? .loader { border: 16px solid #f3f3f3; border-radius: 50%; border-top: 16px solid #3498db; width: 50px; height: 50px; -webkit-animation: spin 2s li ...

How can I alter the position of the scrollbar in a nested div structure in CSS?

Within my nested div structure, I have an inner div that functions as an auto scroller. However, this inner div is contained within another outer div, which itself is positioned inside yet another outer div. The scroller is only visible within the first ...

Discovering the compiled CSS file in React when using Sass: A step-by-step guide

In my React project, I have incorporated SASS. Now I am looking to find the final compiled CSS file from that SASS code. Whenever I navigate to: While there is the SCSS file visible, where can I locate the CSS version? I am referring to the compiled outp ...

"Enhance Your Angular 6 Project with a Stunning jQuery Lightbox

Looking to incorporate jquery simple lightbox into my app, however I am encountering an issue. When I hardcode the image links, everything works fine - images are displayed from both external links and local folder. But when I try to use *ngFor directive t ...