Hovering over an element will not change its color

I'm having trouble understanding why the hover effect doesn't work on the last 3 tabs when I move my mouse over them. The first 3 tabs are functioning correctly, but the remaining ones aren't. I only adjusted their margins and nothing else. I enjoy adding code to my Blogger blog because it's very useful. Below are the codes that are giving me issues. They work fine in the console, but the hover effect is missing when I add them to my blog.

p {
  margin-top: -30px;
}

.ctc-txt.bg_ffffff.br6 {
  width: 642px;
  height: 200px;
}

.clr-txt {
  top: 160px;
}

.text-center.ct-case.mb10 {
  display: flex;
  align-items: right;
  justify-content: center;
  margin-top: -20px;
  margin-left: 120px;
}

.counter {
  margin-left: -14px;
}

#copyStr {
  margin-left: 260px;
  margin-top: -10px;
}

#text {
  top: -30px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://rawgit.com/Dieffer/test1/master/mycss.css">
<form method="post" id="text" action="">
  <p class="">
    Type or Paste your text here to change text case
  </p>
  <div class="relative">
    <textarea class="ctc-txt bg_ffffff br6" name="form_content" id="form_content" onclick="cont()"> </textarea>
    <img class="clr-txt" onclick="resete()" src="https://smallseotools.com/asets/images/cleartext.svg">
  </div>
  <div class="col-lg-12 col-sm-12 pn pt5 pb5">
    <div class="button_box h-a">
      <div class="counter">
        <label>Character Count: <span id="cc"> 0 </span></label>
        <label>- Word Count: <span id="wc"> 0 </span></label>
      </div>
    </div>
  </div>
  <div class="text-center ct-case mb10" id="ctc_button_box">
    <input name="toggle" class="button ctc-btn br6" type="button" id="toggle" value="tOGGLE cASE">
    <input name="sentence" class="button ctc-btn br6" type="button" id="sentence" value="Sentence case">
    <input name="lower" class="button ctc-btn br6" type="button" id="lower" value="lower case">
    <input name="" class="button ctc-btn br6" type="button" id="upper" value="UPPER CASE">
    <input name="capitalized" class="button ctc-btn br6" type="button" id="capitalized" value="Capitalize Word">
    <input name="alternating" class="button ctc-btn br6" type="button" id="alternating" value="aLtErNaTe cAsE">
  </div>
</form>

Answer №1

Maybe clearing your browser's cache could help resolve the issue since the code appears to be functioning correctly.

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

*Arabic text styled in italics using JavaFX*

I'm having an issue trying to italicize Arabic text, It just won't work, I've experimented with different fonts as well, but none seem to be working, Here's the code snippet: import javafx.application.Application; import javafx.scene.S ...

Creating a modal with a checkbox option for "remember my preference" in Angular

Currently, I am working on an Angular project (version 16) and my goal is to create a dialog modal that includes a checkbox for "do not show again". Here is the process I envision: When a user visits the web application for the first time, a dialog moda ...

Tips for incorporating a QML file into a SwipeView

I attempted to implement swipe view functionality where I needed to load different qml files onto each swipe. In total, I required 7 qml files for 7 swipes and had to include a global property in each swipe. Although I tried using Loader to fetch the qml ...

What is the correct way to format an AJAX response?

I apologize for the vague title, but my question pertains to responding to Autocomplete. For more information, you can visit this link. Instead of receiving multiple elements, I am only getting "Array". This is an obvious mistake due to the way echo funct ...

Adding a canvas inside a container that has a height set will result in scrollbars appearing

I am experiencing an issue with the canvas tag. I am trying to append it into a parent div, but when I set specific dimensions for the parent and embed the canvas tag, scrollbars appear. However, when I try the same thing with a regular div, it works fine. ...

Unable to make changes to a file authored by a different user within Firestore using Vue.js / Firestore

I appreciate any assistance in advance, as this issue has been causing me a lot of frustration! Currently, I am adhering to the firestore data model where users are able to create their own documents associated with their userID. This ensures that users c ...

Passing this as a function parameter in Jquery

HTML <input type="button" id="1" class="add" value="+" title="Add" onclick="set(this);"/> JS function set(obj){ alert(obj.id); } The code snippet provided above seems to have an issue. My Requirement I am looking for a solution that allows ...

In JavaScript, unchecking a radio button results in all options becoming uncheckable

I have a pure CSS accordion and I want to enhance it with some JavaScript functionality for users who have JavaScript enabled. The CSS accordion currently utilizes the :checked pseudo-class. The new feature I am looking to add is: if a button that is alre ...

Issue with setting Y Axis intervals using ticks in d3 library

I am trying to set the Y Axis from 0 to 100 percent with intervals of 0-25-50-75-100. Despite setting ticks to 4, I am seeing Y axis intervals of 0-20-40-60-80-100 How can I adjust the Y axis to display intervals of 0-25-50-75-100? Here is the code I am ...

Ways to show a button once multiple checkboxes have been selected

I am working with a table that contains checkboxes. My goal is to make a button visible when more than two checkboxes are selected, and hide it when less. JavaScript Code: $(document).ready(function() { if ($("input:checkbox:checked").length > 1) { ...

Please use Shift + Enter feature only when using desktop devices

In my React chat application, I have implemented a textarea for message input to allow multiline support. This works smoothly on mobile devices as pressing Enter creates a new line and a send button is available to submit the message. However, I want a di ...

Modifying content in span element upon click event using jQuery

There is a button placed inside a span element <span class="act-button"><input type="button" value="Deactivate" onclick="deactivateTemplate(' + options.rowId + ')"></span> The requirement is to update the text inside the span. ...

Update the Google Chart whenever an Ajax request is made

Upon the initial load of the chart with the default Ajax response, everything seems to be working fine. When I add console.log(chart_data), I can see both the default data and the new data after submitting. The only issue is that the chart does not redraw ...

"Flashes of canvas in constant motion between animated scenes

I have a practical exercise to do for school, but I am very new to HTML/JS. The issue I am facing is that my canvas is flashing, like it erases one image and then quickly displays another. I want both images to be displayed at the same time. Here is the co ...

Next.js: Generating static sites only at runtime due to getStaticProps having no data during the build phase, skipping build time generation

I am looking to customize the application for individual customers, with a separate database for each customer (potentially on-premise). This means that I do not have access to any data during the build phase, such as in a CI/CD process, which I could use ...

Hovering over images for captivating captions in html and css

I'm currently experimenting with creating an image caption hover animation and here is the progress I've made: https://jsfiddle.net/6Lwo2231/ Here's a snippet of the HTML code: <div class="container-a1"> <ul class="caption-sty ...

"What could be causing the jQuery to not function properly in the head section

After experiencing slow loading times for the navigation menu on mobile devices, I decided to move my code to the <head> area. You can check out the demo at this link: I'm utilizing TinyNav.js to convert my navigation into a select dropdown. In ...

Confused by jQuery User Control - Seeking Assistance!

I am currently facing an issue with a user control that creates a jQuery DatePicker. The user control is being called twice on my page, resulting in dynamic IDs for the inputs, controls, and buttons. I am looking for a solution to either set a hidden inp ...

Pass a value from PHP to $.get function

Looking to enhance the user experience on my website, I am currently in the process of updating my form submission method from form action to ajax. The code is functioning correctly and the server side is able to update the database. However, I am facing a ...

Optimizing web development: Employing HTML templates to dynamically enhance website performance

My task involves the redesigning of an existing website (foo.com) using .NET and C#. The website caters to multiple companies such as abc.com, def.com, ghi.com, etc. Currently, the website utilizes html templates specific to each company's website in ...