Issue: Firefox does not support the background: url property

My menu has 2 background images with hover effects.
However, I am facing an issue where the background images are not displaying in Firefox.

Here is the HTML code snippet:

<div class="markermenu">
 <ul>
  <li><a  href="#" id="one">Moda e Accessori</a></li>
  <li><a  href="#" id="two">Hotel e Viaggi</a></li>
  <li><a  href="#" id="three">Cosmesi</a></li>
  <li><a  href="#" id="four">Giochi e Scommesse</a></li>
  <li><a  href="#" id="five">Elettronica</a></li>
 </ul>
</div>

Additionally, here is the CSS code for the first item in the menu:

.markermenu{
 width: 311px; /*width of menu*/
}

.markermenu ul{
 list-style-type: none;
 margin: 1px 0;
 padding: 0;
 border: 0px solid #9A9A9A;
}

.markermenu ul li a#one{    
 background: url(/img/icon/moda.png) 20px, url(/img/icon/arrow.png) 280px, -webkit- gradient(linear, left top, left bottom, from(#fff), to(#EBF0EF)) ;
 background-repeat:no-repeat;
 background-color:#fff;
 height:79px;
 color: #17548e;
 display: block;
 width: auto;
 padding: 30px 0;
 padding-left: 90px;
 text-decoration: none;
 border-bottom: 1px solid #D4DBD9;
 border-left: 1px solid #D4DBD9;
}

.markermenu ul li a#one:hover{
 color: #fff;
 background:url(img/icon/giac.png) 20px, url(img/icon/arrow_white.png) 280px;
 background-repeat:no-repeat;
 background-color: #17548e;
 /*onMouseover image change. Remove if none*/
}

While everything works fine in Chrome, the images do not show up in Firefox unless hovered over. Can anyone help troubleshoot this issue?

Any insights would be greatly appreciated!

Answer №1

Take a shot

.markermenu ul li #one {
  background: url(/img/icon/moda.png), url(/img/icon/arrow.png), linear-gradient(to bottom, #fff, #EBF0EF);
  background-repeat:no-repeat, no-repeat;
  background-position: 20px 0, 280px 0; /* please adjust these positions if they are wrong */
  /* ... */
}

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

Update the CSS styles using properties specified within an object

Is it possible to dynamically apply CSS styles stored in a JavaScript object to elements? For instance, can we change the width and background of a basic <div> element: <div id="box"></div> <button id="btn">click me</button> ...

Organize the search bar and button over a background image using Bootstrap and CSS styling

I am facing a challenge in positioning the search bar on a background image, as well as placing a button at the bottom and center of the image. After that, I plan to include containers. My Goal https://i.sstatic.net/ZfYQj.png However, I am struggling an ...

Using the Jquery load function to add new content to existing HTML

I'm attempting to create an AJAX request that will insert additional HTML content into the existing content within specified tags. Below is the structure of my load function. <script> $(document).ready(function(){ $(".tid-select").cha ...

Resolve the issue pertaining to the x-axis in D3 JS and enhance the y-axis and x-axis by implementing dashed lines

Can anyone assist with implementing the following features in D3 JS? I need to fix the x-axis position so that it doesn't scroll. The values on the x-axis are currently displayed as numbers (-2.5, -2.0, etc.), but I want them to be shown as percentag ...

Embedding text within an image and adjusting its size simultaneously

My goal is to include a paragraph within an image, but the text keeps overflowing beyond the boundaries. I would like the image to resize proportionally to accommodate the length of the paragraph. Despite attempting to use the min-height property, I have ...

Alert Div from Bootstrap fails to appear during the second ajax request if the first ajax request is canceled

I've implemented a dismissible alert in my HTML file that starts off hidden. Here's the code snippet: <div class="alert alert-dismissible" role="alert" id="msgdiv" style="margin-bottom:5px;display: none;"> <button type="button" clas ...

How can you apply color to {{expression}} text using AngularJS while also keeping all the text on a single line?

After writing the following code, I noticed that when I enter text into the input box, an output appears. However, I am now trying to find a way to color the output text while keeping it on the same line. <script src="https://ajax.googleapis.com/ajax ...

Leveraging a combination of AngularJS directives within a single div element

Why can't I use multiple directives in the same div tag in AngularJS? The product names from the module are not displayed with the following HTML code: <!DOCTYPE html> <html ng-app="gemStore"> <head> <title></ti ...

Error with jquery.mobile-1.4.5.min.css in Android webview following recent Marshmallow update has caused compatibility issue

Creating a web page using JQuery was successful and the page loaded correctly on an Android device (Nexus 5) through WebView. However, after updating the Nexus 5 to Android Marshmallow, the web page could no longer be viewed properly on the WebView. Inste ...

`Arrange Buttons Horizontally in Bootstrap`

I've been struggling to align my two bootstrap buttons next to each other horizontally, instead of on top of one another vertically. Despite researching and trying various suggestions, I still can't seem to get it to work... Below is the code I ...

Tips on assigning a default value to an HTML <select> tag using information fetched from a database

I am currently working on setting the default value of a dropdown element in HTML using data retrieved from an SQL database. I have successfully extracted the values from the database and stored them in variables. Here is the code snippet of what I have ac ...

Develop a slider feature based on radio button selection

I am currently working with radio buttons for ticket selection. <div> <input type="radio" name="ticket" value="Standard"> Standard <input type="radio" name="ticket" value="Express"> Express <input type="radio" name="ticket" value= ...

Leveraging the Power of CSS in Your Express Applications

Struggling to make my CSS links functional while working on localhost. Currently, when I view Index.html on my server, it displays as plain text without any styling. Even after trying the express middleware, the CSS files are still not being served, result ...

The jQuery AJAX call is successful in Firefox, but unfortunately, it is not working in Internet Explorer

I've encountered a perplexing issue with an AJAX call. It's functioning perfectly fine in Firefox, but for some reason, it's not working in IE. Curiously, when I include an alert() specifically for IE, I can see the returned content, but the ...

Changing the heading color based on a condition with uib-accordion

I am currently utilizing angular-ui in conjunction with my AngularJS application. One component I have on my page is an accordion (uib-accordion) element, where the content, name, and state (opened/closed) are bound to an array in the controller. The desi ...

Enhancing the Angular Currency Pipe to display zeros after the decimal point

Using Angular has strict requirements for displaying full numbers received from the backend. In some cases, like with "123.450" and "123.45," the amount may be the same but clients prefer to see the complete number. <td>{{ material.customerPrice | ...

"Yakov's slender typefaces are appearing incorrectly on the screen

I recently tried to incorporate Yakov thin fonts using CSS @font-face, but I noticed that the fonts appear quite different from the original ones. Any idea why this might be happening? Below is the code snippet I used: @font-face { font-family:' ...

Can the submit ID value be utilized in PHP?

name="submit" functions as expected. if(isset($_POST["submit"])) <input type="submit" ID="asdf" name="submit" value="Save" class="ui blue mini button"> I want to change it to use ...

I need assistance getting a <div> perfectly centered on the page while managing the bottom and right margins

I created a design resembling the French flag and I want to maintain the same margin from the edge of the browser window. However, the ratio of the container may change. The image below illustrates what I have implemented. https://i.sstatic.net/mInBn.png ...

Troubleshooting Flexbox in Internet Explorer 11: Issue with 100% width not functioning properly within nested flex containers with a 'column'

Is there a way to ensure that an image within nested flex containers has a width of 100% in IE11, even when the container has flex-direction: column? I've tried setting the width to 100% with a max-width of calc(100% - 0.1px), but unfortunately it doe ...