Styling texts on Internet Explorer is possible with text-decoration

After completing the coding for my website, I encountered some issues on specific web browsers like Internet Explorer and Microsoft Edge. Despite conducting searches, I have been unable to find a solution. Here is an excerpt from the CSS code I am currently using:

        .container {
            width: 70%;
            position: relative;
            left: 47.5%;
            transform: translateX(-50%);
            -webkit-transform: translateX(-50%);
            -moz-transform: translateX(-50%);
            -o-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
            background: white;
            margin-top: -450px;
        }

        article {
            text-align: justify;
            width: 80%;
            margin-left: 25%;
            color: #666;
            margin-bottom: 140px;
        }

        .grand_titre_section {
            font-size: 50px;
            font-family: honey;

            text-decoration: underline overline dotted orange;
            -webkit-text-decoration: underline overline dotted orange;
            -moz-text-decoration: underline overline dotted orange;
            -o-text-decoration: underline overline dotted orange;
            -ms-text-decoration: underline overline dotted orange;

            position: sticky;
            position: -webkit-sticky;
            position: -moz-sticky;
            position: -o-sticky;
            position: -ms-sticky;

            text-decoration-color: orange;
            text-decoration-style: dotted;
            text-decoration-line: overline underline;

            top: 99px;
            background: white;
            z-index: 10000;
            padding: 20px 0px 10px 0px;
        }

Additionally, here is the HTML code snippet:

<div class="container">
    <article>
        <div class="grand1" id="grand1">
            <p class="grand_titre_section">Big title</p>
            <!-- other elements of the div -->
        </div>
    </article>
</div>

I have attempted using vendor prefixes and separating elements, but unfortunately, it has not resolved the issue.

Furthermore, the use of 'position: sticky;' does not seem to be effective either.

If more code is required to address this problem, please let me know as my webpage has a unique layout resulting in challenging positioning requirements.

Answer №1

It's important to note that the CSS property text-decoration is not compatible with Internet Explorer or Edge browsers.

https://i.sstatic.net/gZ7hs.png

If you're unsure about browser support for certain properties, you can utilize this website for cross-browser compatibility testing: https://caniuse.com/#search=text-decoration

To achieve a similar effect, consider using ::after and ::before in your CSS code as they are widely supported across different browsers.

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

Designs created with shapes using HTML, CSS, and JavaScript

I've been given a challenge to reproduce the image shown below using only HTML, CSS, and JS - without utilizing any image files. Initially, I thought about creating the shapes with HTML elements and CSS, but I realize this might not be the best approa ...

Issue with consistent search autocomplete feature in a stationary navigation bar using bootstrap technology

My issue is with the autocomplete box - I want it to have the same width as the entire search box. Something like this using Bootstrap's col-xs-11 class: https://i.sstatic.net/npzhC.png If I set the position to "relative," it looks like this (all st ...

Looking for a more efficient method to code this dynamic jQuery pagination loader?

Currently, my website uses a pager that loads the page when you click on the page numbers. The code shows the closest 10 pages along with arrows to navigate to the first, previous, next, and last pages. I am aiming to develop jQuery code that can update t ...

I'm having trouble locating the HTML link in my text

I've recently started coding and I'm facing an issue. I can't seem to figure out why a link named "Food Taxi" isn't showing up. I added an href tag, but it's still not linking properly. I've tried moving some code around witho ...

"Utilizing a range input element with a set value on the slider

I have implemented the input type range property on my webpage and have applied some CSS styling to it. However, I feel like there is room for improvement. .Slider { -webkit-appearance: none; width: 75%; height: 15px; border-radius: 5px; backg ...

Styling fonts by using CSS transitions

Here's a challenging query to ponder: Can CSS transition with fonts successfully incorporate changes in font-weight and font-family? Take a look at this example: This question delves into the realm of Donald Knuth's MetaFont, likely to bring ...

Is the Packery image grid only functional when the background image is specified in CSS and not in JavaScript? Perhaps we need to look into using Await/Sem

I've successfully implemented a packery image grid that is responsive and functional when the background image in the .item-content section is defined in the CSS file: http://codepen.io/anon/pen/eJdapq .item-content { width: 100%; height: 100%; ...

Creating a mobile-responsive float-right image using bootstrap

There is an image positioned to the right, surrounded by text: <img class="img-responsive" style="float:right;" src="https://assets.ifttt.com/images/channels/1352860597/icons/on_color_large.png"> <p>Lorem ipsum dolor sit amet, consectetur adip ...

Struggling to connect CSS and JS files in an HTML document

I'm encountering issues while trying to connect CSS and JS files to my HTML file's head section. Below is the HTML code snippet: <!DOCTYPE html> <html lang="en"> <head> <title>title</title> <link rel=" ...

Altering the source of an HTML image

I am faced with a situation where I need to change the font color of text under a specific condition using code like this: newEntryRow.find("p").find("span").css('color','red'); Now, my goal is to achieve something similar but by chan ...

What is the reason for the malfunction of Bootstrap Tooltip when it is placed within a table?

I am experimenting with adding a TOOLTIP to table elements (td). However, I have noticed that when the tooltip is shown, it causes the width of the td element to change, despite the fact that the tooltip has an absolute position. What could be causing thi ...

How can images be resized in relation to the window size while maintaining specific pixel margins?

I'm looking to achieve a centered image on the screen that stretches horizontally while maintaining set margins of 200px on each side. It's important that the image scales proportionally and remains centered regardless of the window size. Althou ...

Elements that intersect in a site's adaptable layout

I need to create a design similar to this using HTML/CSS with the Skeleton framework: view design preview I've experimented with various methods to overlap the background and image, utilizing absolute positioning for the image. However, this approach ...

Using two divs, each containing different content, with one incorporating a tinymce editor, in order

There are two div elements in my code: <div id="ing" style="position:relative;"> <div id="comm" style="position: absolute; width: 27% !important; height: 141px; right: 18px; top: 1px; "> </div> </div> After that, I set T ...

Utilize Bootstrap to incorporate a "Show More" and "Show Less

I need to create a paragraph that will display "Show more option" if the content exceeds 3 lines. When clicked, it will expand the paragraph and show a "Show less" option. Clicking on "Show less" will collapse the paragraph. This functionality must be im ...

The navigation bar is malfunctioning across multiple sections, including html, css, and js

The navigation bar on my website is giving me a headache. It works perfectly when the page is at the top (home section), but as soon as it scrolls down to another section, it stops working. I've tried multiple solutions, but none seem to do the trick. ...

Enabling the use of dot or full stop in JavaScript keycode for numeric input

I am facing a challenge with a method that is supposed to allow all numeric values, including the '.' symbol. Below is the code for my method. While it successfully allows numeric values, it seems to have an issue with keyCode == 190. function I ...

upon reaching the conclusion of the animation without employing the .animate() method

I'm currently working on developing an iPad web application. The .animate() method doesn't meet the necessary speed requirements, so I've opted to utilize CSS for most of my transitions. How can I go about implementing html <div id="myG ...

Ways to shut down a pop-up

Can someone assist me with how to close the bio-info popup and implement it in the code provided below? The HTML file: <ul class="ch-grid"> <li> <div class="bioinfo"> <h2>tooltips</h2> /div> The CSS file: .bioinfo { ...

Having trouble showcasing two unordered lists side by side on a single line

In my Magento Go store, I am showcasing products using CSS only. Currently, the loop is set to display 5 products in a row and then close the <ul> tag. However, if there are more products, a new <ul> element is created. My fixed width only allo ...