marquee element functioning properly on Chrome, however encountering issues on Firefox

I need my marquee code to pause on mouse over and resume on mouse out. It is currently working correctly in Chrome but not functioning as intended in Firefox.

Here's the code snippet I'm using:

<marquee direction="up" onmouseover="this.stop();" onmouseout="this.start();">
<h4>Writing</h4>
<p class="content">Get a professional resume written by experts</p><br/>
<h4>Certifications</h4>
<p class="content">Exhibit your skills to catch the eyes of recruiters</p>
</marquee>

Answer №1

<section style="position:relative; top:20px; left:10px; right:30px; height:120px; overflow:hidden; display:block; border:dashed 2px black; padding:4px; border-radius:6px; -moz-border-radius:6px; -webkit-border-radius:6px;">
    <marquee behavior="scroll" direction="up" scrollamount="7" style="width:100%; height:100%; vertical-align:middle; cursor:pointer;" onmouseover="javascript:this.setAttribute('scrollamount','0');" onmouseout="javascript:this.setAttribute('scrollamount','7');">
    Any content, photos, paragraphs, ...
    </marquee>
    </section>

Answer №2

Avoid using the Marquee element as it is not recommended by W3C Standards. Instead, consider utilizing JavaScript or jQuery effects to achieve the same result. Here is a helpful resource: I hope this information proves useful!

Answer №3

This code successfully ran in both Chrome and Firefox browsers

<marquee behavior="scroll" direction="up" onMouseOver="this.setAttribute('scrollamount', 0, 0);this.stop();" OnMouseOut="this.setAttribute('scrollamount', 2, 0);this.start();" height="120px" scrollamount="2">testing scroll up </marquee>

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

Can jQuery be used to organize div elements?

I am facing a challenge with the structure of my HTML code. Below is an example: <div id='main'> <div id='612'> </div> ... <div id='1'> </div> </div> Within this structu ...

Show div using jQuery

There is a hidden div that has been declared as follows: <div id="divLogin" style="visibility:hidden;"> The plan is to reveal this div using jQuery with a sliding effect. Here is the code that was created: $("btEnviarAcesso").click(function () { ...

Retrieve the text contained within a specific element's paragraph

Is there a way to extract the text content from a <p> tag that is located within an <li> element? Sample HTML code: <ul> <li onclick="myfunction()"> <span></span> <p>This Text</p> </li> &l ...

Tips for referencing Google Maps initialization in individual files within a website application

After setting up my Google Maps API snippet: <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"></script> in the index.html file, I encountered the error: Uncaught InvalidValueEr ...

Pictures failing to load on both Chrome and Safari browsers

For some reason, the images on my app are not appearing in Chrome and Safari but show up fine in Firefox. If you try to open the image URL in a browser, it works perfectly. However, when embedded in the HTML document, the image appears broken. I also test ...

What is the CSS property that aligns content to the center of a button in HTML?

Here's an intriguing and somewhat trivial inquiry: if I were to create a button tag in HTML, then input some text such as "click me" or something <button> Click Me! </button> and proceed to use CSS to assign it width and height, like ...

Is there a way to style the current page's link to make it appear disabled?

On my website, there are three main pages: Home, About, and Contact. I want the link to the current page to visually indicate that clicking on it would be redundant since the user is already on that page. Should I use CSS or jQuery for this task? And what ...

Having trouble making the image appear in a relative position

I am struggling to figure out why my figcaption is not positioning correctly. My image is set to relative position. Meanwhile, my figcaption has been set to absolute positioning. This should mean that the figcaption with a bottom: 60px should be positio ...

The navigation bar's icons are not displaying correctly in Bootstrap

I'm working on building a navigation bar using Bootstrap, but I'm facing an issue with the home icon not displaying correctly. It's not aligned properly and doesn't flow seamlessly with the rest of the list items. Can someone please ass ...

Retrieve all CSS properties associated with a specific DOM element, similar to the functionality provided by Firebug

Is there a method to retrieve all the CSS styles specified for a specific DOM element? Do I need to iterate through all the CSS style names? Could there be a more sophisticated approach? How exactly does Firebug achieve this task? Appreciate any insights ...

What is causing the error message "Error: Cannot update active font: 'Fira Sans' is not included in the font list" in react-font-picker?

For my project, I have implemented a font picker component in the following manner: <FontPicker apiKey={process.env.REACT_APP_GOOGLE_API_KEY} activeFontFamily={activeFontFamilyMobile} ...

issue with animation occurs when the value changes while the setTimeout timer is still running

function wallpaperMediaPropertiesListener(event) { // reset animation test.stop(true); test.css('margin-left', 0); // set song title. test.text(event.title); var testWidth = test.outerWidth(); // clone text ...

use css to align multiple div elements

I am struggling to line up more than five div tags on the same line. Here is my CSS: <style> #yes { float: left; width: 18%; margin:1px; } </style> Example of HTML code: echo '<div id="yes">'.'<b>'.'Job T ...

javascript strange behavior

I am facing an issue with my code that is attempting to display images based on their height. Strangely, the code seems to work fine when I test it with 2 images, but fails when trying with 3 or more. Check out the site: Upon clicking a menu button, the ...

Include the entire HTML script within a PHP file

Apologies in advance for this beginner question, but I need to get it right. I have created a website with all HTML files that are functioning properly. Now, for session handling, I need to convert all the HTML files to PHP code like below: <!DOCTYPE H ...

CSS: The height of floating divs is set to 0

I'm attempting to align 2 divs next to each other within another div, creating 2 columns of text with the outer div forming a border around both: HTML <div id="outer"> <div id="left"> ... <div id="right"> </div& ...

Changing navigation position while scrolling to a different anchor using fullpage.js

Currently, I have a lengthy scrolling webpage that utilizes fullpage.js. The navigation is fixed in position over the page and each active slide is highlighted by its corresponding link. My goal is to have the link move to the top position when it's ...

Is there a way to display identical information in separate divs?

What is the best way to access the text within a div on this website? I am trying to extract data from multiple divs, specifically the article2 divs in the col... divs. I need all of the text data from these divs. However, my current code isn't workin ...

How to stop text from spilling out of its parent container in CSS

I have a description of a website in HTML: <div class="a_desc"> <div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque </div> <div> Lorem ipsum d ...

Is there a way to shift this modal to the right?

I am facing an issue with aligning a button modal to the right side. I attempted using bootstrap classes like : float:right, mt:20 Unfortunately, these did not have the desired effect. Below is my code snippet: <b-modal ref="my-modal" hide-fo ...