IE failing to display bottom border properly

In all browsers, my divs display with rounded borders except for IE. I believe I need to add some compatibility CSS.

Check out this link for more details.

Here is the HTML code:

<div class="upper_button">
    <a href="http://www.yahoo.com/" target="_blank"><h2>Blah2</h2></a>
</div>
<div class="upper_button">
    <a href="http://www.google.com/" target="_blank"><h3>Blah</h3></a>
</div>

This is the CSS style being used:

.upper_button {
    padding: 5px 20px;
    width: 120px;
    float: right;
    height:22px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    background: rgb(147,206,222); /* Old browsers */
    background: -moz-linear-gradient(top, rgba(147,206,222,1) 0%, rgba(117,189,209,1) 41%, rgba(73,165,191,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(147,206,222,1)), color-stop(41%,rgba(117,189,209,1)), color-stop(100%,rgba(73,165,191,1))); /* Chrome,Safari4+ */
    background: linear-gradient(top, rgba(147,206,222,1) 0%,rgba(117,189,209,1) 41%,rgba(73,165,191,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#93cede', endColorstr='#49a5bf',GradientType=0 ); /* IE6-9 */
    -moz-box-shadow: 1px 1px 1px rgba(000,000,000,0.2),
        inset 0px 0px 0px rgba(255,255,255,0);
    -webkit-box-shadow: 1px 1px 1px rgba(000,000,000,0.2),
        inset 0px 0px 0px rgba(255,255,255,0);
    text-shadow: 0px -1px 0px rgba(000,000,000,0),
        0px 1px 0px rgba(255,255,255,0.3);

Answer №1

If you are using IE8 or below, keep in mind that the border-radius property is not supported.

Fortunately, there are several workarounds available:

Answer №2

Unfortunately, border-radius is not supported in older versions of Internet Explorer such as IE8 and below.

While IE9 does offer support for border-radius, there can be issues when trying to apply both a CSS gradient and border-radius to the same element in this browser.

Answer №3

The culprit in causing the issue with IE9 is your filter implementation.

When using IE filters, the border-radius property gets broken and distorted. You can confirm this by changing the background to a solid color and removing the filter. Take a look at this example: http://jsfiddle.net/PQtbw/12/

Update: One way to resolve this problem is by wrapping your button in a container that has the border-radius applied, then adding overflow: hidden; to the styling.

Check out the improved version here: http://jsfiddle.net/PQtbw/13/

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 could be causing my fixed header to disappear in Safari 5?

I am experiencing a strange issue with my fixed header on Safari 5 for iPad. The header disappears once it scrolls down to a certain point, even though it works fine in IE, Firefox, Chrome, and the latest version of Safari. Has anyone else encountered this ...

Show the respective value names stored in my database for every choice available

I am facing a challenge in explaining what I need, but essentially, I want to showcase the name of the choice I selected from a list stored in the database. To provide more context, below is my select input: <select name="options[1][]" id="perso_1" cl ...

Creating a user-friendly responsive design similar to Whatsapp web by utilizing Bootstrap 4 and Ember framework

I am currently in the process of creating a user interface similar to Whatsapp web. My tools include Bootstrap 4 and Ember 3.2. The foundation of my idea is set, with a message box positioned at the bottom of the screen using the fixed-bottom Bootstrap cla ...

Using ngb-carousel to display embedded YouTube iframe videos

Can anyone help me figure out how to embed an Iframe into a ngb-carousel? The carousel is displaying correctly, but the iframe tab is not showing up as expected. <ngb-carousel *ngIf="project.images"> <ng-template class="item" n ...

Refresh the dropdown menu selection to the default option

My HTML dropdown menu includes a default option along with dynamically generated options using ng-options. The variable dropdown is bound to the dynamic options, not the default one. <td> <select ng-model="dropdown" ng-options="item as item.n ...

Make the div in jQuery clickable to redirect to the child URL

Could someone shed some light on why this code isn't functioning as expected? I'm fairly new to javascript and jQuery. Below is the snippet in question: Javascript / jQuery: <script type="text/javascript"> $('.clickk').cl ...

jQuery rounded images slideshow

Currently, I am working on developing a jquery slider that showcases rounded images. Below is the HTML code: jQuery(document).ready(function($) { var $lis = $('ul').find('li'), length = $lis.length; $lis.each(function( ...

Unable to reduce the height of the li element

Even though I've attempted to adjust the height of the lis in this section using CSS, I can't seem to shorten them as desired: I've experimented with setting a line-height, adjusting the height, ensuring that paddings and margins are set to ...

Exploring the latest features in Bootstrap 4 Alpha and enhancing your

Rumors have it that Bootstrap 4 will make its debut during the year 2016. When duty calls for an upgrade, is a complete re-write truly the best solution? Tackling such a project from Boostrap 2 to 3 was no small feat, and I find myself hesitant to take on ...

Tips for creating a double background color effect outside of a container

I want to create a footer similar to this design: https://i.sstatic.net/BIn4C.png html <footer> <div class="container"> <div class="row"> <div class="col-7 copyright__text py-3"> COPYRIGHT ...

Having trouble with your code on Internet Explorer 11 using Selenium Webdriver?

Currently, I am working on a Windows 7 - 32 bit system. The code I am using functions properly on Chrome and Firefox, but unfortunately does not work on IE - 11. Even though the browser is opened and the application is launched, it fails to locate any ele ...

What is causing nth-of-type to behave like nth-child?

My goal is to alternate colors for elements with a certain class, ignoring any elements of different classes in between them. Despite my attempts to use nth-of-type, I have encountered issues with its functionality in Firefox and Chrome. http://jsfiddle.n ...

A guide on transforming a 1-dimensional array into a 2-dimensional matrix layout using Angular

My query revolves around utilizing Template (HTML) within Angular. I am looking for a way to dynamically display an array of objects without permanently converting it. The array consists of objects. kpi: { value: string; header: string; footer: string }[] ...

Is the availability of XMLHttpRequest constant?

When using XMLHttpRequest to retrieve data from the server with Javascript, is it necessary to include conditional checks for the specific browser being used? Is the code snippet below considered standard practice when working with XMLHttpRequest? if (w ...

Developing a webView for the C# / Mono Launcher application

Currently, I am working on developing a C# mono launcher using Xamarin Studio. My goal is to create the interface with HTML and CSS in a webView. Is it possible to achieve this in C#? If so, could you please provide some guidance on how to accomplish this ...

How can you stop text in a textarea from spilling over into the padding?

When I add padding to a textarea element and type more than four lines of content, the content overflows into the padding. Is there a way to prevent this? I have looked at the suggestions in this thread and this one (specifically for google-chrome), but t ...

Leveraging event listeners in conjunction with React's useEffect function

Check out the code example on Code Sandbox here Hey there, I'm trying to implement a feature where clicking a button inside a container displays a box. I've set up an event listener so that when you move your mouse outside the container, the box ...

Incorporating a full-page background into a specific view using AngularJS

In order to implement a fullscreen CSS background for a specific view in my app, I attempted adding a class to the body. However, this approach caused the background to persist in the cache and remain visible when switching views. The challenge arises fro ...

What is the best way to incorporate a custom margin within a grid system while ensuring it remains responsive?

I'm currently working on incorporating 4 non-bootstrap "cards" into my HTML layout, with some space between them. Here is an image depicting how it's supposed to look: https://i.sstatic.net/bppvW.png The problem arises when I attempt to make the ...

Guide on embedding a hierarchy triangle in an email with HTML

I am looking to include a hierarchy triangle in an email generated by my webpage. This triangle should reflect the data from the page, including the number of activities, appointments, proposals, and deals. Specifically, I want it to display: Top of the tr ...