Positioning share part full width on mobile, and different on desktop
i was trying to position my share div in the full width of one of its sibling (person), the share div is a div that only shows when the button is clicked. this is my live version, if you click the share button you should see whats wrong. ill show you a link of how i want it to be aswell. + my code. This is my live version: https://article-preview-component-master-tvzx.vercel.app/ , this is my github: https://github.com/gajbos99/article-preview-component-master/tree/main/article , and at last how i want it to look like: https://oaved.github.io/article-preview-component/ , just starting out with css, if you have any tips/feedback please let me know
How to layout child elements so they will not move when parent element shinks/grows or moves?
I have a parent div and place three svg ellipses and a image inside it. They need to have a certain position on top of the div. This position needs to be always the same no matter where the div moves or if it shrinks/grows (i want to execute an event when a certain position on the image gets clicked).
Animation | Transition in React JS
hope you are doing well.
How to center a button within a positioned container using Flexbox in CSS?
I’m trying to center a button (‘retart_button’) within a positioned container (res_centered_div) using Flexbox in CSS, but I’m facing some alignment issues. Here’s my current setup:
How to dynamically adjust container height when flex items wrap in React with CSS?
I’m working on a React application where I have a container (answers-container) with multiple buttons (answer elements) inside it. These buttons are laid out using flexbox (display: flex) with flex-wrap: wrap to allow them to wrap onto the next line when the container width is exceeded.
date input issue when adding max and min properties
<input type=”date” id=”chooseDate” name=”chooseDate” value={selectedDate} onChange={(e) => handleScheduleDate(e.target.value, assessorId, true) } disabled={assessorId ? false : true} class=”form-control font12″ min={moment(new Date()).format(“YYYY-MM-DD”)} max={moment(new Date(disableMaxDays)).format( “YYYY-MM-DD” )} placeholder=”YYYY-MM-DD” /> Initially, the date format issue displayed as “dd-06-2024”. After commenting out the min and max, it displayed as “dd-mm-yyyy.your text Thank you in advance javascript html css reactjs
How can I make my React app 100% responsive while keeping existing styles intact?
I have a React application with a specific layout and styles that I’d like to make fully responsive across different screen sizes—from mobile devices to large desktops. I’ve already implemented some styles using CSS, but I’m struggling to ensure everything adapts correctly without breaking the existing design.
Cannot find module ‘ajv/dist/compile/codegen’
Cannot find module ‘ajv/dist/compile/codegen’
scrollTop value after assigning an integer becomes floating in mobile browser and integer in desktop
let currentScrollTop = Math.round(scrollableDiv.scrollTop); let lineHeightInt = Math.round(lineHeight); console.log(currentScrollTop+lineHeightInt) scrollableDiv.scrollTop = Math.round(currentScrollTop + lineHeightInt); console.log(scrollableDiv.scrollTop, lineHeightInt); logging the currentScrollTop+lineHeightInt gives 56 but logging the scrollableDiv.scrollTop after assigning currentScrollTop+lineHeightInt gives 55.76309585571 in mobile browser. I want it to be same as desktop as 56. javascript html css reactjs New contributor Aman is a new contributor to […]
Scrolling to top via anchor tag issue when there is still some “scroll left” and clicking a tag
I have a straightforward scroll to top button via anchor tag, and it works as expected. Except for one issue which I’ll try to describe the best I can how I’ve observed it: