classes vs data-typeβ¦
Kevinβs CSS often includes declarations, such as β.container[data-type=βwideβ]β.
But Iβm struggling to understand how this approach differs from using two classes.
Thanks!...
Is semantically correct have a empty legend inside a fieldset?
Hello friends, hope you're doin well! π
I'm facing a situation where I have a form structured in 3 different sections.
So my first instinct was to have a form divided into 3 fieldset, like this:...
Moving Position on load? (background-attachment: fixed)
Hello,
When adding
background-attachment: fixed
to my hero image, the starting position moves when the page is loaded (see GIF below)
https://gyazo.com/b957d488dfdb4ff09938272699915a65
How do I prevent this from happening? Do I need to offset my background image? Here's the rest of the CSS applied to the img (div)...How to change the color of an <svg> image when I hover the mouse
Guys, I have these svg's and I don't have their code. They are static and I added these in the code with the <img> tag. How do I change the color when I hover? In the challenge's figma file it asks me to change the color to orange, but I can't use the fill or the background-color.
Github repo: https://github.com/sircarloschaves/equalizer-landing-page
Live page: https://sircarloschaves.github.io/equalizer-landing-page/...
Why is "~" not working?
This is the code: https://codepen.io/Bard-the-scripter/pen/zYeMELM
I want to create a custom cursor and it works. but when I hover over a .btn or something else, I want to scale it or increase the width. The problem is that it doesnt work. In the developer tools I can't even see that bit of code being applied....
Issue with stylesheet
so i am this issue here as u can see in the video where my stylesheet is for some reason being added multiple times and being removed continuously. And u can see my page is also loosing styles for that when the stylesheet gets completely removed. I am doing a react project here and this is the first time i have encountered this issue. Idk what else info i should add here but pls do ask if theres anything i should let you know
here is my github repo for this project...
Front-End
I am always confused in this type of design you can say never worked on this type. Look at the design in Dekstop the background image {of girl with} is going to the background of text of hero area. I thought that I will make a div in which all the navigation and hero will be there than I will put that girl as a background to it, But when I see to mobile version It is like using flex and doing column or you can say even using grid. I think this type of designs can be only made using grid but not using background image. But here is a problem using grid also that how will that image will render as a background of text [Like small text having some area of image as a background]. What are the approaches to it.
Thanks....
Two coding issues...
Hi, everyone.
I first wanted to share how sincerely appreciative for this community as I continue to learn.
I have two problems I can't figure out -...
Scroll to Animating Div
Hi,
I have 'a' tags in my header with href pointing to a div that has animation. The animation applied to the div translates it along Y axis. I have used animation-timeline: scroll() on the div. So, as I scroll the page, the div translates (parallax effect (I have so many moving divs)). But the main issue is, due to this animation, when I click on the 'a' tag it is not taking me to the expected position because the div is translating. I thought of using offset, but since the animation speed depends on height of the total page (scroll-length), its very dynamic and I have no idea what to do. Any idea how to fix this without changing much structure?...
How do I create this horizontal scroll while stopping the user from scrolling pass?
I found a cool website https://familyindustrieslive.com/ and while looking scrolling through it when I get to the "The Experience" it stops me from scrolling and it horizontal scrolls before I'm allow to scroll down more. How do it do this?! This is COOL!!!!
Custom Carousel Question! How do I get the end of an animation to stick?
I'm way over my head in css and any help or suggestions would be greatly appreciated! I'm trying to make a special carousel for the testimonials, and I'm sorta happy with how this came out, but I'm unsure how to continue so that it stays at the new location and the old front testimonial moves back (so they switch)
Passing props in parent component
React I have two types of components:
- List
- option (component CheckboxOption or RadioOption could be used in props.children)
```js...
issue with form
there is some issue with the form idk what, i've been starting at the code for a literal hour and couldn't find anything wrong with it, maybe yall can help me pinpoint the problem. i ideally want it to look like the attached image. Thanks!
link: https://codepen.io/staticoly/pen/KKJGJZQ...
Content not showing
When i click on this tab"Giving Comedians " (check on left side) than in the content of that tab there is a text "Lance Armstrong " check the attached image(i have highlighted it ) when i click on it i move to the other tab which is working good but after that when i click on someother tab from and than when i click on this tab"Giving Comedians " than in the content of that tab there is a text "Lance Armstrong " i click on it my content hides why here is the link of my website"https://talhamu...
my website kinda looks empty
Hey ! Not really a technical question but I made of custom portfolio website from scratch with vanilla html/CSS/Js and I feel like my website looks empty. Any recommendations/design choices I should make to make it feel better ? Thanks. https://antonycd.com/en/
Uniform Nav Bar
I'm trying to have 3 sections in my Nav which all have equal width's. What is the better / more optimal solution to achieve this? Thank you π
https://codepen.io/Matt-CopOffMatt/pen/MWLPEGq...
My margins are collapsing with this alternative to container and wrapper classes
Has anyone tried this yet? https://discord.com/channels/436251713830125568/551066863266693130/1172179877722595469
I'm kicking the wheels on it since yesterday on a new project and it's working great with a full-width with any content inside not imposing it's own layout. But as soon as I:
1. add a div with it's own flex/grid (like this H1 in the hero banner) it breaks out to full-width. I know the H1 is a block element and takes up 100% width by default but that should be 100% of the intrinsic container here I would think still.
2. try to put a breakout inside of a full-width and the same thing happens....