The fa icon is not responding to the display:none setting

 <i className="fa fa-close closeButtonSmall" onClick={e => removeColumn(id)} ></i>

I have been attempting to hide the font displayed by the closeButtonSmall class using display:none, but it doesn't seem to be working as expected.

.closeButtonSmall{
  display:none ; 
}

What could possibly be causing this issue?

Below is my entire CSS file, and just to note, I am also utilizing Bootstrap 4:

.d-inline{
  display:inline ;
}

.closeButton{
  color:red  ;
  float : right ; 
  transition: all 0.3s ; 
  margin-top : -20px ; 
}

.closeButtonSmall{
  display:none ; 
  transition: all 0.3s ease-in-out;
  color:red  ;
  float : right ; 
  position: relative;
  top:-10px;
  right:-15px;
}

.closeButton:hover , .closeButtonSmall:hover{
  color: #eee ; 
  background-color:orangered ; 
}

.tabChoosePanel{
  background-color: rgba(216, 216, 216 ,0.8 );
}

.tabChooseItem{
  transition:  all 0.7s ; 
  flex-grow: 1;
  font-size:150%;
}

.tabChooseItem:hover{
  transition:  all 1s ; 
  cursor: pointer;
  user-select: none;
  background-color: rgba(150, 128, 209, 0.5);
  flex-grow:1.2 ;
  font-size:200%;
}

.tabChooseItem:active{
  transition:  all 0.1s ease-in-out ; 
  background-color: rgba(146, 127, 200, 0.6);
}

.columnAddArrow{
  transition: all 0.3s ease-in-out; 
  border: 2px dotted brown ;
  padding:35px;
  opacity: 0.3 ; 
}

.columnAddArrow:hover{
  opacity: 1 ; 
  font-size: 120%;
  border:2px dashed black ;
}
.columnAddArrow:active{
  font-size: 140%;
  color:green;
}

/* THIS THE STYLE FOR  VariableNameWithNumbers component */
.columnFormatBlock{
  border: 1px solid green ; 
  margin : 2px 10px 0 10px ;
}
.columnFormatBlock:hover .closeButtonSmall{
  display:inline;
}

.numberOptionBox{
  border: 2px dotted blueviolet ; 
  border-radius: 10px ; 
}

.columnText{
  border : 1px dashed black ;
  border-radius:10px ;
  color:black ;
  font-size:110%;
  background-color: rgba(230, 230, 230, 0.774) ;
}

.resultDisplayGrid .outputStringTextArea{
  width:70%; 
  height: 12em;
} 

Answer №1

Perhaps the reason is that your font awesome files are loading after your css. Consider adding an important tag to the display none property, or ensure that your css loads after the font awesome files.

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

Scrolling CSS Divisions Along the Horizontal Axis

.group { background: #000; margin-left: 25px; margin-right: 25px; padding: 15px; width: inherit; white-space: nowrap; overflow-x: auto; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } .item { margin: 3px; backgro ...

Tips for setting up Bootstrap 4 tooltips in an Angular 4 project without utilizing ngbTooltip

Is there a way to add Bootstrap 4 tooltip in an Angular 4 application without using ngbTooltip? <a href="#" data-toggle="tooltip" title="Hooray!">Hover over me</a> <script> $(document).ready(function(){ $('[data-toggle="tooltip" ...

Reveal a secret div on the page by clicking a link to unlock its contents

I'm working on an HTML page where a hidden div is supposed to become visible when a button is clicked. The code snippet I have is: $('#display').click(function(){ $('#itemList').removeClass('hide'); ... }) Now, ...

Bizarre discrepancies in text wrapping across various browsers

After encountering a larger issue, I found that I could reduce it to a simpler scenario: To see the problem in action, check out this jsFiddle link: http://jsfiddle.net/uUGp6/ Here is the simplified HTML code: <div class="box"> <img class=" ...

Ways to resolve issues with resizing div elements while waiting for JavaScript to load

Apologies for the lack of a clear title to describe my issue. My problem involves this snippet of code, where I am creating a label to show time to users. <div class="content"> <div class="container"> <div class="card"> < ...

Reverse animation transition not activating in CSS

In an attempt to create a side navbar using HTML/CSS, I implemented hover animations where hovering over an icon would cause it to double in size and disperse the rest of the items in the navbar. While I successfully achieved this animation with JavaScript ...

Sisense - Mastering UI Customization techniques

As someone new to Sisense, I have been given the challenging task of adjusting the appearance of the Sisense app. The default look resembles what you see in this screenshot: https://i.sstatic.net/7izSY.png To begin, my main focus is on customizing the he ...

CSS - Aligning div below the other one does not function properly on compact screens

Currently, I am utilizing the zurb-foundation as a CSS framework for my layout. Within this layout, there is a header consisting of a title bar and two divs. The left div occupies 4 columns on larger screens, while the right div takes up 8 columns. The rig ...

What is the correct method to define the width as a percentage while also maintaining a minimum width in pixels?

My header/navigation bar div features a repeat-x background image. Within this, I have a horizontal navigation that needs to be centered over the background with a specified min-width and normal width. I want the navigation to be 80% of the full width, wi ...

Suddenly, the Bootstrap CSS appears to have ceased functioning

Here are some of the questions I've already checked out: Bootstrap JavaScript not functioning Twitter Bootstrap dropdown suddenly not operational Comprehensive list of possible issues causing a CSS file to fail All of a sudden, my Bootstrap sty ...

Various image resolutions designed for extra small, small, medium, and large screens

My image has a relative width and currently the src points to a single, large file (approximately 1000px). The issue arises on small devices with Opera and IE where the browser scaling results in pixelated images. Conversely, using a smaller image leads to ...

Error: CSS styles are not being applied to tables in the email HTML template within the console application

I have an HTML template in a console application where I need to send emails using the template. Everything works fine except that the CSS is not being applied to the template. Although I have written the CSS on the same HTML page, it doesn't seem to ...

What is causing the content to overflow outside of the navbar on smaller screens or mobile devices?

/* *{ font-family: sans-serif; box-sizing: border-box; margin: 0; padding: 0; overflow-x: hidden; } */ .main { min-height: calc(100vh - 10rem); display: grid; place-items: center; } p { font-size: 4rem; line-height: 1.6; } nav ...

Is it possible to create a 2-column form with one div element that spans

I created a form using HTML that is divided into two columns for input fields, followed by a 'footer' row containing the form's submit button and additional text. The current layout of the form looks like this: ___________________________ ...

What's the best way to reduce the dimensions of this container in order to align them next to one another?

https://i.sstatic.net/VHahe.jpg As a novice student in the world of coding with html and css, I have embarked on a project to create a website. However, I've encountered a minor issue... I'm looking to adjust the width of these boxes so they al ...

Using loops in Sass mixins causes errors

I have been developing a SASS code to generate CSS output that has the following format. background: -webkit-linear-gradient(top, 50%); background: -moz-linear-gradient(top, 50%); background: linear-gradient(top, 50%); This is the SASS mixin code I cr ...

The hovering event trail feature is not functioning in tsParticles, unlike in particlejs

I have two questions regarding the implementation of tsParticles in my React application. First question: <Particles id="tsparticles" options={{ background: { color: { value: "black&quo ...

Customize CKEditor by automatically changing the font family when the page is loaded

How can I change the font-family of CKEditor to Meiryo based on a JavaScript boolean? I attempted this code in my custom JS within an if condition, but it did not successfully change the font-family: config.font_style = { element : 'span&apo ...

Modify image content in HTML without the need for additional web pages

Seeking your assistance, I have recently built a website using a free HTML/CSS template that I stumbled upon. However, I am encountering an issue. I am interested in setting up a gallery on the site, but I have an extensive collection of images spread acr ...

The inline variables in CSS transitions are failing to be detected

The CSS transitions are not recognizing the inline variables, or if they are, they are not receiving the correct information. Below is an illustration of how the inline variables are defined in the HTML: <p class="hidden" style="--order ...