Help problem please
Reddit » Cascading Style Sheets
by /u/Born-Newspaper1592
11h ago
Each time I use <h> a mini scrollbar appears next to it. This appeared after I added the overflow-x: hidden; how can I fix this please submitted by /u/Born-Newspaper1592 [visit reddit] [comments ..read more
Visit website
Position: Sticky not cooperating
Reddit » Cascading Style Sheets
by /u/OhDearGod666
11h ago
submitted by /u/OhDearGod666 [visit reddit] [comments ..read more
Visit website
How can this be implemented with CSS?
Reddit » Cascading Style Sheets
by /u/Amazing_Guava_0707
11h ago
I have a page/component. I have divided it into two vertical sections which have a fixed height. Those two sections (lets say 1 and 2) have some items in them. (1's item are in green and 2's items are red in color). There will always be some items in both the sections. Now if the items in the first column exceeds the length of the section(as in image 1), that/those item/s should go to the next section(as in image 2). How can we do that? https://preview.redd.it/nh9jo7s73iwc1.png?width=542&format=png&auto=webp&s=d4e955e562e441dc1dc617c6d102850d2524bf7e https://preview.redd.it/v5 ..read more
Visit website
How do I get the navbar to be “next to” the page content instead of above it?
Reddit » Cascading Style Sheets
by /u/Rimspix
11h ago
Newbie here, so do I use grids? submitted by /u/Rimspix [visit reddit] [comments ..read more
Visit website
Which youtube channels is best for learning css
Reddit » Cascading Style Sheets
by /u/IllustriousEye0011
18h ago
I'm starting to learn css right know how to start low level to high level submitted by /u/IllustriousEye0011 [visit reddit] [comments ..read more
Visit website
Image Slider | HTML & CSS ?️
Reddit » Cascading Style Sheets
by /u/robson_muniz
18h ago
submitted by /u/robson_muniz [visit reddit] [comments ..read more
Visit website
How to select elements based on their order relative to other child elements within different parent containers?
Reddit » Cascading Style Sheets
by /u/Other_Importance9750
1d ago
I need to select elements with classes based on their order relative to other child elements within different parent containers. I tried using nth-child selectors, but I couldn't figure out a way to get them to repeat. Currently, I just have a bunch of elements with classes being selected. Not optimal, but it works. .container1:has(input[type="radio"].1:checked) ~ .container2 .1, :has(input[type="radio"].2:checked) ~ .container2 .2, :has(input[type="radio"].3:checked) ~ .container2 .3 { background-color: red; } I would really prefer not to use JavaScript. Is there any way to do this withou ..read more
Visit website
Using @container queries but not breaking nested elements with fixed position?
Reddit » Cascading Style Sheets
by /u/so-very-very-tired
1d ago
I'm relatively new to using `@container` queries. I love them. Makes responsive work so much easier. That said...I rant into a problem today. We use some JS frameworks one of which creates pop-up menus for us (which, in turn, is based on popper.js believe). Like a lot of pop-up scripts, it gets the position of the element clicked on relative to the viewport and then positions the menu accordingly with position: fixed. The catch is that because I am using `container-type: inline-size`, the menu it is positioning is actually relative to the container--not the viewport. So it's actually position ..read more
Visit website
How to make smooth scrolling in Firefox ?
Reddit » Cascading Style Sheets
by /u/TrejziKetri123
2d ago
I want to scroll with Javascript to top of the page with smooth behaviour. This is the javascript code : window.scrollTo({ top: 200, behavior: 'smooth' }); and I also added to css : html { scroll-behavior: smooth; } but scrolling doesn't work at all. If I delete the behaviour: 'smooth', scrolling works. How can i make scrolling work with smooth behavior ? My firefox version is: 115.10.0esr (64-bit) submitted by /u/TrejziKetri123 [visit reddit] [comments ..read more
Visit website
How to write Contextual Styles in Tailwind?
Reddit » Cascading Style Sheets
by /u/PeppermintPleasure
2d ago
Contextual styles allow us to do a sort of inverse-nesting which lets us keep all styles in one place. Here's how it is done in Styled components const TextLink = styled.a` /* Standard styles: */ color: blue; text-decoration: none; /* Styles when rendered inside a quote: */ ${QuoteContent} & { color: black; text-decoration: revert; } `; What the above code does is applies the default styles of color: blue; text-decoration: none; to all anchor tags. But, if the anchor tag is nested within a QuoteContent tag (<blockquote>), it'll apply the styles color: black; text-decoration: reve ..read more
Visit website

Follow Reddit » Cascading Style Sheets on FeedSpot

Continue with Google
Continue with Apple
OR