Skip to main content

All Questions

Tagged with
10,012 questions with no upvoted or accepted answers
-3 votes
2 answers
2k views

Make a scrollable child div independent of the scroll of parent

I am trying to make a scrollable div inside a another parent div. but the height of the child div is not fixed, I want to make the child div scrollable independent of the parent div scroll.How can I ...
Kuldeep Sharma's user avatar
-3 votes
2 answers
287 views

Layout Shrinking When The Page Has An Iframe

I have a React website (based on Next.js) for which I wrote a React component to embed Tweets. But when a page contains a tweet, the layout shrinks. I have figured out that it happens when there is an ...
Rajat Saxena's user avatar
  • 3,879
-3 votes
2 answers
1k views

React css import not working in cdn when i am imporing in head

<html> <head> <link rel="stylesheet" type="text/css" href="./styles.css" /> </head> <body> <div id="root"></div> <script src="https://...
soubhagya pradhan's user avatar
-3 votes
1 answer
2k views

Displaying a random image with matching title in React slideshow component on page load and button click

I'm trying to build a slideshow that displays a random image with its associated title when the page loads or when you click the next button from the slideshow. I'm doing this in a React component. I ...
Allison's user avatar
-3 votes
1 answer
281 views

how to display whats up in a responsive way by using react js

enter image description herei develop what's up web by using react. my scenario is when ever i execute in desktop it will be displayed in a desktop responsive and whenever i displayed in a mobile it ...
sr srinath's user avatar
-3 votes
1 answer
52 views

How to check that window.pageX is increasing or decreasing in js?

window.addEventListener('mousemove', function(){ if(magic happens){ console.log("yes pageX is increasing"); } else{ console.log("no pageX is decreasing"); } }); what ...
Nawab Ali's user avatar
  • 404
-3 votes
1 answer
63 views

Applying position dynamically in Javascript

I am creating a div in javascript. I use: const divStyle = {left: offsetPercent + '%', 'position': 'absolute'}; <div style={divStyle}/> Typescript complains that the 'absolute' value (a string)...
Jeremy's user avatar
  • 5,425
-3 votes
1 answer
52 views

How to auto grow just the width in textarea?

I was wondering if there is a way to just autogrow the width of a textarea. I understand that there is multiple ways to grow the height but i havent found something to grow just the width. To give a ...
lirikb's user avatar
  • 81
-3 votes
2 answers
663 views

Change color of all occurrences of a character javascript/reactjs

I am working with reactjs have a form with multiple input fields and some of them have labels with an asterisk to indicate that the field is mandatory. I want to change the color of all the asterisks(*...
Ajay Singh's user avatar
-3 votes
1 answer
109 views

Completely disable form input fields without disabling every single element

I have a situation where I need to disable certain input fields in a form. There can be a lot of fields and it seems inefficient to disable every single element. Is there a way to disable a group of ...
Guido Visser's user avatar
  • 2,279
-3 votes
1 answer
2k views

Non responsive website made using Create React App - Page showing zoomed in on mobile

Background of the problem - I am creating a simple HTML landing page using create react app node package manager. I started having problem when I tried to make the website mobile friendly. Specific ...
Sagar Munjal's user avatar
-3 votes
2 answers
838 views

How to make a dynamic navigation bar that changes its content based on events?

For an example i want to create a nav bar that contains Log in and Sign up buttons but when a user is logged in i want instead the nav bar to contains Profile button with an image thumbnail of the ...
Jahnson's user avatar
  • 37
-3 votes
1 answer
40 views

Change state with api post call

hope you are well. Im working on application for an online casino, I made a multistream app to show all the streams, I simply want to make that when a stream isLive=False (on Database) I want it to ...
Nico Muscat's user avatar
-4 votes
1 answer
960 views

How Do I Stop Parent Div From Expanding Because of Its Children?

So child div is has a list of items next to each other, each with a fix width. In this image child div extends past MainContent but in the actual app, MainContent extends to fit the width of child div....
Trunks159's user avatar
  • 101
-4 votes
1 answer
40 views

Adding JS to an existing HTML and CSS ui

so I already coded a chat app UI for my project site, after I learnt css and html, and now I want to add functionality to my existing code, and I don't know how to set up client server and add the ...
Meir Biton's user avatar

15 30 50 per page