Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I got …
Tag: css
Set active class conditionally in React
I am new to React and of course, I am facing problems, the thing I am trying to accomplish is this. When any of these Components is opened I want to set an active class. I have already tried something but it is not working. So I want to add a background color to these divs className=’menu__iconsRight &#…
HTML form action triggers on first button
I have an html form to collect all data under it. My inputs questions are hidden as default. You click their headers to make radio buttons visible (like html collapse). My problem is, i have 5 …
Change color of dropdown item in React with color picker
I have a react color picker that I am using to create a custom 16 color gradient. I use a dropdown to select the color I want to edit and then use the color picker to pick the color. This edits an array that is called to style each box of the dropdown. My end goal is to change the
Insert a two column table with image and text data, within a single tooltip
I’m working on a website and I need to create a two column table (one column for images, the other for text) within a single tooltip. The purpose of the tooltip is to bring up a quick guide for reference, featuring an image of a product with its title. To take it a step further, I’d love to have t…
Code corresponding to navbar slider in mobile-view isn’t working as intended
I am currently in the process of coding my navbar for the mobile viewport. I did some searching and I thought I had a solution, but it turns out the solution isn’t working at all. I’m trying to make it so that when the nav burger in the navbar is clicked/ tapped, the navigation options slide in to…
Visual effect on click or touch with pure Javascript and CSS
I have a responsive webpage which contains pictures and text and is designed to be viewed on a mobile device. I would like to add visual effects such that whenever a user touches or clicks on the page something happens at the point of contact (eg. a ripple or expanding circle). Ideally I could put a bunch of …
Horizontal scroll jquery-mousewheel library function errors (ex: this. on is not a function)
I am trying to create a horizontal scrolling website and I was following this tutorial which uses this library; however I get a “this.on is not a function” or a similar error where something is not a function. I have tried rotating my webpage but it just messes everything up (href anchors don̵…
Jquery call function on hover if element is of class A but not class B
I want to call a function when hovering over elements with a specific class attribute, but not another. I feel like the :not selector should work, but it is still firing for all elements of class A. I have elements with a specific class .sidebar-section, but one of them has another class attribute .show, I wa…
Bootstrap collapse/expand multiple targets with different collapse states
In the bootstrap docs, there is an example of how to toggle single and multiple targets, see https://getbootstrap.com/docs/4.0/components/collapse/?#multiple-targets. When clicking “Toggle the first element” and then “Toggle both elements”, the state of the two elements are mismatched …