October 22, 2024
Chicago 12, Melborne City, USA

CSS

CSS (Cascading Style Sheets) is a representation style sheet language used for describing the look and formatting of HTML

CSS

Problem with Javascript ParentNode – Div containers

There is a problem with parentnodes divs, and I really don’t know what I’m doing wrong I have tried different things but I can’t get it to display correctly, and the console always gives me the same error. So I would appreciate the help of someone more experienced than me to try to solve this

Read More
CSS

flexbox doesnt show my numbers horizontally

enter image description here Thought this would show the numbers 1,2,3,4 in the progress-container next to each other but it doesnt. What am I missing here? Must be something wrong with my understanding of flexbox.. @import url("https://fonts.googleapis.com/css?family=Muli&display=swap"); * { box-sizing: border-box; } body { background-color: #f6f7fb; font-family: "Muli", sans-serif; display: flex; align-items: center; justify-content: center;

Read More
CSS

flexbox shrink does not work as expected with text content

I created a simple layout with two flex containers. Both have an implicit flex-shrink: 1 like the default value should be. So I expect, that flex-shrink will shrink down content that "overflows" the total size. However, this does not work and both of my containers overflow the parent: <div style="width: 100px; height: 200px; background-color: red;

Read More
CSS

Scroll Issue on mobile

I am facing an issue with scrolling CSS on my mobile devices. I have attached an image. due to the 100vh height, I can’t scroll to my main body. the bottom part gets obscured by the bottom nav. then I removed the 100vh but it still isn’t working. import React, { ReactNode, useEffect } from

Read More
CSS

How to put ellipses in the middle of text like native file input

How can I do this? I am builidng my own file input (1st one) by using a button and hidden file input and want to replicate the text overflow behavior from the native file input (2nd one). I’ve seen soultions like this. I tried it and it works, but it feels rather strange to split

Read More
CSS

Next.js fonts in css stylesheet

I am starting a new project with NextJS (version 14.2.13). I have imported two fonts from google fonts using the following code: ./app/fonts.ts import { Montserrat, Open_Sans } from 'next/font/google' export const montserrat = Montserrat({ subsets: ['latin'], variable: '--font-montserrat', display: 'swap', }); export const open_sans = Open_Sans({ subsets: ['latin'], variable: '--font-open-sans', display: 'swap', }); And

Read More
CSS

I can't create an animation

I was doing a commision for a client on minecraft and when i was trying to do the css part it wouldn’t give me my box to do the animations, here’s the test code as i can’t send the actual code for privacy reasons <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">

Read More
CSS

CSS: 1 parent + 2 children. Is it possible to have the image grow wider than its sibling only when it is in the landscape aspect ratio?

I am trying to make a dynamic image/sibling size, with flex-wrap, where by the image can be of varying aspect ratios. The issue is wide images. The behaviour I am seeking is as follows: <div class="listing"> <img src="${imgURL}" alt="${name}" /> <div class="info"> /* rest of code */ </div> .listing { display: flex; gap: 0.5rem; flex-wrap:

Read More
CSS

How to get scroll on right side CSS

I am newbie in web desgin and css, and I need to make the scroll of sidebar div on the right side not left side The HTML Direction is from Right to Left I do not want Sidebar on left but only Scroll not Sidebar itself I tried but I cannot get any solution, I

Read More
CSS

How to close a overlay element when route changes. The overlay is common component so it stays open even after route change

The problem is due to reusing the same component instance across multiple pages. Tried setting up a dispatch action to close on every page load. But solution is too time taking to implement everywere You need to sign in to view this answers

Read More