Do we really need the -o-border-image property?

Using an image as a border is something I am interested in exploring. After some research, I came across this code:

-moz-border-image: url(".....
-webkit-border-image: url(".....
border-image: url(".....

One thing that caught my attention was the absence of an Opera property similar to "transition" which has -o-transition.

I am considering adding an Opera specific property like -o-border-image. Do you think it is necessary or would it be wiser to leave it out?

Answer №1

Most older browsers tend to have issues with the shorthand property border-image. It is recommended to utilize the individual properties instead:

border-image-source
border-image-slice
border-image-width
border-image-outset
border-image-repeat

The border-image-repeat property has been known to be problematic for quite some time.

Opera: issue resolved in version 43
Firefox: issue resolved in version 50
Chrome: issue resolved in version 56
Safari: issue resolved in version 9.1
Edge: no issues reported

Therefore, it is advisable to use the separate border-image-___ properties and steer clear of using border-image-repeat for better browser compatibility. This way, you can avoid having to deal with prefixes such as -moz-, -webkit-, or -o-.

Answer №2

Avoid using prefixed properties in a production environment as they are meant for experimental features and may result in inconsistent behavior or other issues.

Support for the border-image property (without any vendor prefix) can be found in:

  • IE starting from version 11
  • Edge starting from version 12 (current version 80)
  • Firefox starting from version 15 (current version 74)
  • Chrome starting from version 15 (current version 80)
  • Safari starting from version 6 (current version 13)
  • Opera starting from version 15 (current version 66)

source

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 is more effective: generating/eradicating HTML components or concealing them until required?

When it comes to showing/hiding content, there are two main approaches that I would consider: Creating and destroying elements as needed using jQuery's append() and remove() methods. Having all elements already in the HTML but hiding/disabling them ...

Rule for restoring scroll position upon reloading web pages in browsers

When it comes to websites that handle data asynchronously, the behavior of scroll position restoration upon browser refresh can vary. Sometimes the scroll position is preserved, while other times it is not. For example, when reloading after scrolling down ...

Arranging buttons that are generated dynamically in a vertical alignment

Currently, I am in the process of creating a webpage for various items, and everything is going well so far. However, I have encountered an issue while attempting to vertically align the buttons that I am generating using JavaScript within the document. I ...

The resizing and thumbnail feature is functioning properly, but there is an issue when uploading multiple files

My resize and thumbnail function seems to be working only with one file instead of multiple files. When attempting to upload more than one file, only the first file is processed correctly. It gets saved in the directory, resized, watermarked, and its path ...

Insert fixed text before or after the input value without altering the value itself

Is it possible to prepend or append additional text to an input value? I am looking to customize the display of a value without altering the actual value itself. For instance, if the value is 1000, I want it to still return 1000 when accessed. <input ...

Choosing the name of an HTML element tag using Selenium with Python

Struggling with writing a Python3 function using Selenium to click a link matching specific text. The HTML code is: <a class="name-link" href="/colors/thisOne" </a> Yellow I know how to select the class name "find_element_by_class_name("name-li ...

How can I adjust the container to fit the monitor's dimensions while still keeping the

I am currently facing an issue on my website where the main content div has a fixed height, causing it not to scale vertically on larger monitors. I attempted setting the CSS properties for the div to 'auto' in order to allow it to adjust to the ...

The styling for buttons links is malfunctioning

I am currently developing my own version of Bootstrap and focusing on buttons and links. I have anchor tags within the button element, but the link styling is not displaying correctly. HTML <button class="btn-danger"><a href="#">Danger</a& ...

"Transitioning from jQuery to Vanilla Javascript: Mastering Scroll Animations

I'm seeking guidance on how to convert this jQuery code into pure Javascript. $('.revealedBox').each(function() { if ($(window).scrollTop() + $(window).height() > $(this).offset().top + $(this).outerHeight()) { $(this).addCla ...

Enhancing jQuery functionality: Ensuring newly added elements are aware of existing functions

I need assistance with my HTML table. Each row (tr) contains a value, for example 200$, and a delete button. How can I ensure that each new row added automatically knows the recent functions without having to call them every time? $(function () { $(&ap ...

Unable to navigate to specific tab in Laravel 6 navigation tabs using URL parameter (e.g. myweb/pages#tab1)

I'm having trouble navigating to the tabs pages, they only show up in the URL (myweb/pages#tab1 .. myweb/pages/#tab2 ..). Can someone please help me out? View image <div class="card-body"> <ul class="nav nav-tabs" id="myTab" role="tabli ...

`Android Image Slider for Easy Navigation`

Looking to create a camera roll slider bar on Android similar to iOS. The idea is to display a set number of thumbnails that can be scrolled through to view all images. Here's the desired outcome: https://i.sstatic.net/B6LVY.png ...

Guide on making a submit and close button within an overlay

Seeking a button to both submit and close an overlay window. The button code is as follows: <a href="javascript:additem('Info to add here', 10.00,1);" role="button"><button class="purchase btn btn-warning">Select</button></ ...

Animating a straight line between two points on a webpage using HTML5 and JavaScript

Here's a simple question that might have a solution... I am interested in creating an animation that moves between two points in a straight line, using HTML5 and/or JQuery. ctx.beginPath(); ctx.moveTo(0, 0); // starting point ctx.lineTo(100, 100); / ...

Interactive elements embedded within an image - digital board game

I'm currently working on integrating a board game into React, and I am facing some difficulties in figuring out how to translate the board squares shown in the image into data. Is there a method through which I can assign unique IDs to each square di ...

Chrome fails to load webfont upon page initialization

Encountering a problem with loading a WebFont specifically on Chrome version "48.0.2564.82 m (64-bit)". The issue arises from the webfont not being applied upon page load or navigation, unless I manually refresh the page. Below is the snippet of code fro ...

How to properly format credit card input using JavaScript or jQuery

I need to implement a feature where users input their credit card information, and once they complete the form, I want to display the credit card number in this format: xxxxxxxxxxxx1111 or xxxx-xxxx-xxxx-1111, without altering the actual input value. Is ...

The image source is not functioning properly to display the image, even though it is working perfectly on

I'm currently attempting to retrieve an image from Instagram. Everything seems to be in order with the image link on Instagram. However, when I try to use it within an img tag, it fails to fetch. One thing worth noting is that this particular image d ...

Switching from a layout of 3 columns to 2 columns on iPad when orientation is changed to portrait

Apologies for posting this inquiry here, but I am facing a challenge with an iPad issue when switching to portrait orientation on my website. I am using a @media query to detect the portrait view and I want to switch from three columns to two. However, th ...

Trouble displaying images from JSON file in AngularJS using ng-src - need help with image loading

While utilizing AngularJS to extract image data from a JSON file, everything seems to work fine for other types of data except images. Why is the ng-src not retrieving any images? I am attempting to load all the images into the div and set the src, alt, a ...