Пікірлер
@vertigoz
@vertigoz Сағат бұрын
Nada como CSS do BEM
@bls512
@bls512 2 күн бұрын
Extremely helpful, especially your code pen. I'm curious how you approach a larger project using Utopia. Huge thanks!
@gaming_with_raza7867
@gaming_with_raza7867 3 күн бұрын
I learned html css and js. Now i am learning backend but the point is i cannot make Good looking layout specially i stuck in responsiveness Anyone any Suggestion?
@pappapez
@pappapez 10 күн бұрын
Thanks! This is insanely important stuff. And you explain it so well. You almost make css make sense!
@dmtrmrv
@dmtrmrv 10 күн бұрын
Thank you : ) I swear it does! Well, most of the times.
@Tesfamichael.G
@Tesfamichael.G 10 күн бұрын
Nice lesson!
@dmtrmrv
@dmtrmrv 10 күн бұрын
Glad you enjoyed it!
@alexmacol228
@alexmacol228 10 күн бұрын
Thank you so much! Your explanation is so clear and I never knew that trick! Thank you!
@alexmacol228
@alexmacol228 10 күн бұрын
Thank you!!! Again another great explanation!
@dmtrmrv
@dmtrmrv 10 күн бұрын
My pleasure! Glad you found it helpful!
@MissEAG
@MissEAG 10 күн бұрын
Hi, I have been really enjoying your teaching style and look forward to your new videos. I have recently been learning about partials folders in Sass and learned about creating variables in a colors folder for example. I realize that isn't what you've done here as you've listed colours at the top under the :root tag?... not sure.. maybe in a future video could you talk about when to use this list of colours that you have listed in double hyphens vs using partials folders and using $black = #000000, with the dollar symbol, for example. Maybe I'm missing something fundamental, not sure, I will also look it up. Thanks!
@dmtrmrv
@dmtrmrv 7 күн бұрын
Hi @MissEAG! Thanks for your kind words and for watching the videos! You're right; I don't use separate files to store variables in my demos and stick to vanilla CSS rather than Sass. My main goal is to focus on a specific topic or pattern that can be applied across various contexts-CSS, Sass, CSS-in-JS, and so on-rather than on the tooling itself. In real-life projects, it often depends on the project, but I would likely put variables into a separate file, which is generally considered a best practice. Regarding Sass, I stopped using it a few years ago as CSS began to rapidly evolve. We now have features like variables, nesting, and other enhancements, so I personally don't see the need for Sass since it adds another tool and dependency. I prefer to keep my projects as dependency-free as possible (but with as many as necessary). However, I understand some engineers still use Sass, and if it works well for the project and the team, that's perfectly fine. Perhaps a CSS vs. Sass video is something to consider for the future.
@alexmacol228
@alexmacol228 10 күн бұрын
Great solution and approach to the subject! The way you explain that is just perfect! You just won a new subscriber to the channel! Thank you for the excellent and helpful video! Greatings from Brazil!
@dmtrmrv
@dmtrmrv 10 күн бұрын
@alexmacol228 Thank you, Alex! Welcome aboard, glad you are enjoying the videos!
@douvogiannisgeorge
@douvogiannisgeorge 10 күн бұрын
as always explain for humans ;) cant wait for more!
@dmtrmrv
@dmtrmrv 10 күн бұрын
Thank you! Glad to hear the explanation was easy to understand!
@Nusamaxa
@Nusamaxa 11 күн бұрын
that "OMG" reaction to the text-input's width was absolutely epic! 😎✌
@dmtrmrv
@dmtrmrv 10 күн бұрын
Well, that was genuinely how I felt when I first started learning CSS, lol!
@Nusamaxa
@Nusamaxa 10 күн бұрын
@@dmtrmrv so true, i still get surprised with how some styles work, even after im 100% sure its correct 😅 then, i find my own idiotic mistake 😁
@onelook1870
@onelook1870 11 күн бұрын
How to make font-family inherit for form elements if it is set in body?
@dmtrmrv
@dmtrmrv 9 күн бұрын
Hey @onelook1870, thanks for your comment! I'm not sure I fully understand the question. The video doesn't cover that, but I'll happily look at your code if you happen to have it on CodePen or Github.
@onelook1870
@onelook1870 9 күн бұрын
Form input field doesn't inherit font family set to body. We have to set again. body { font-family: "Poppins", sans-serif; } We have to set it again for form fields.
@cuemaster-
@cuemaster- 8 күн бұрын
@@onelook1870 That seems to be right, but let's wait for Dmitry confirmation. Thanks for the input (no pun intended). 🙂
@vertigoz
@vertigoz 12 күн бұрын
5:00 2rem should be equal to that of .pixel, but why is that html that is 16pixel by default changes and not .pixel?
@dmtrmrv
@dmtrmrv 10 күн бұрын
@vertigoz Not sure I fully understand the question 🤔
@vertigoz
@vertigoz 10 күн бұрын
@@dmtrmrv I was thinking regarding zoom, when you zoom it all scales up. ps- I tried this on codepen: html{font-size:16px;} h1{font-size:2rem;} h1.test{font-size:32px} one p, one h1, and one h1.test they all scale up if I choose to zoom, if I change font-size they remain the same
@dmtrmrv
@dmtrmrv 9 күн бұрын
@vertigoz Oh I see, so zoom feature works a bit differently. It just scales everything. These changes also do not always carry over between the sites. Font size, on the other hand only affects the font size and those changes are global to all sites you open in the same browser. Does that answer your question?
@vertigoz
@vertigoz 9 күн бұрын
@@dmtrmrv Yes, thanks! :)
@vertigoz
@vertigoz 12 күн бұрын
I still don't understand why there's no babana for scale...
@dmtrmrv
@dmtrmrv 10 күн бұрын
Maybe we can propose 1bbs (one big banana scale) for those really large elements.
@frozentoy4209
@frozentoy4209 12 күн бұрын
Keep up the great work Dmitry, love your pace and articulation 🙌🏻 - have a splendid day
@dmtrmrv
@dmtrmrv 12 күн бұрын
Thank you! 🙌
@jamesreagan4179
@jamesreagan4179 14 күн бұрын
Hi Dima, we met at GitHub Universe last year. Your channel is going awesome and I’m a fan!
@vt9988
@vt9988 15 күн бұрын
Can't wait for new videos ❤
@dmtrmrv
@dmtrmrv 12 күн бұрын
Coming very soon!
@valery3149
@valery3149 16 күн бұрын
Oh my god! I'm looking for this video for a while ! Very very interesting and well explained! I thank you a lot!
@dmtrmrv
@dmtrmrv 16 күн бұрын
Thank you! Glad it was helpful!
@rogerpence
@rogerpence 17 күн бұрын
I'm in for all of your ideas, Dima!
@kJarzyna242
@kJarzyna242 18 күн бұрын
For me, your ideas for development channel are great. There aren't many materials like yours. I really like how you explain concepts and focus on fundamentals. Also, you have your own style, you don't pretend anyone, and you're authentic, which is why your videos are enjoyable to watch. I wish you all the best.
@dmtrmrv
@dmtrmrv 17 күн бұрын
Thank you for the kind words! 😊
@jonasgpayer
@jonasgpayer 18 күн бұрын
Nice. Thank you. Do have a video to solve the problem when the flex direction and the grow direction you need are different, and height:full or width:full aren’t a solution viable because the father element hasn’t defined dimension?
@dmtrmrv
@dmtrmrv 9 күн бұрын
Hey @jonasgpayer, do you have a CodePen or something like that I can look at?
@ontheruntonowhere
@ontheruntonowhere 18 күн бұрын
Fantastic channel, Dima. Clear and concise. You're a great addition to the KZbin dev community. I've been a full-stack dev for a long time (PHP, JS, CSS, WordPress, _finally_ getting into React) and your videos almost always teach me something I didn't know.
@dmtrmrv
@dmtrmrv 17 күн бұрын
Thank you! I'm glad to hear you enjoy the videos. React is a lot of fun-I really like it!
@_kovshenin
@_kovshenin 18 күн бұрын
Good stuff, looking forward!
@goannacs6861
@goannacs6861 18 күн бұрын
🤩 sounds good. Web App - Super Cool idea! Responsive Navigation - Yes please! Lately I dealt a bit with accessibility standards, for example: - Focus state for keyboard users. - Color decisions for Color-blind people. - Proper Semantic for Screen readers. and so on. I have some beginner questions on this topic, so maybe this could also be an idea for future Videos. Some websites do a focus around the burger menu (mobile) when clicked. This looks ugly but seems right due to accessibility standards for the keyboard. Is there a way that focus only applys by keyboard and not by mouse? I'm just beginning to understand accessibility and wonder what's the best way to handle this.
@dmtrmrv
@dmtrmrv 17 күн бұрын
Thanks for your comment! Yes, those are great topics and not very straightforward. I'll definitely cover them!
@Nusamaxa
@Nusamaxa 22 күн бұрын
Honestly, sometimes i get AI to write me CSS and even JS code for animations and stuff 🤫
@dmtrmrv
@dmtrmrv 21 күн бұрын
Nothing wrong with that! It's a mistake not to use AI these days as long as one understands what they are doing.
@marever13
@marever13 24 күн бұрын
Helpful video! Thank's a'lot!
@dmtrmrv
@dmtrmrv 24 күн бұрын
Glad you liked it!
@DraganEror
@DraganEror 25 күн бұрын
Nice example of ChatGPT help. I used it once for similar purpose. In my case I needed a lot of SVG shapes to be precisely placed in an viewBox area, so I asked ChatGPT for some help. :) At the end it took me about an hour to find proper prompt, but in total saved me at least 4-5 hours of manual calculate and edit.
@dmtrmrv
@dmtrmrv 25 күн бұрын
That’s another great example! I really like that we have this option now to delegate tasks like that to AI.
@ahmadbaghereslami796
@ahmadbaghereslami796 25 күн бұрын
thanks for sharing
@Emre-yx6vw
@Emre-yx6vw 26 күн бұрын
At the moment it is really hard to get what I want from any AI out there... It pushes me to learn how to code again and again. One day, AI will help us to build an entire website however we want for sure but it is not close anything like that for today.
@dmtrmrv
@dmtrmrv 26 күн бұрын
I agree; it's definitely not a silver bullet for solving all web engineering problems at the moment. Maybe we'll reach a point where AI will do most of our jobs, but we aren't there yet.
@toptravelingoffers7666
@toptravelingoffers7666 26 күн бұрын
AI name??
@dmtrmrv
@dmtrmrv 26 күн бұрын
I used ChatGPT (GPT 4) for this.
@toptravelingoffers7666
@toptravelingoffers7666 26 күн бұрын
@@dmtrmrv Thanks❤❤
@youferret
@youferret 26 күн бұрын
Wow! That was a great idea to bring on AI to help with a solution. I was getting a headache just thinking of what the alternative was. Another great video Dmitry. Thank you.
@dmtrmrv
@dmtrmrv 26 күн бұрын
Thank you! I got the same headache while browsing through the files. It's so cool that we can offload some boring tasks to AI these days.
@DMC888
@DMC888 26 күн бұрын
For stuff like that I’d normally write some Regex, but now I just copy and paste chunks of HTML into ChatGPT and get it to do the work.
@dmtrmrv
@dmtrmrv 26 күн бұрын
I found that it works really well when you ask it to do something small in scope, but the quality of the responses decreases if the request is more complicated. Overall, though, it's a great assistant for certain tasks, just like Copilot.
@DMC888
@DMC888 26 күн бұрын
@@dmtrmrv yes, the free version I use produces some bizarre responses if you ask too much. Best to do it in steps, refining the result until you get what you want.
@youferret
@youferret Ай бұрын
I'm learning! Thanks Dmitry.
@dmtrmrv
@dmtrmrv Ай бұрын
My pleasure!
@douvogiannisgeorge
@douvogiannisgeorge Ай бұрын
i like your videos because its to the point, keep upp like this :)
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you! I'm happy to hear that because that's one of my goals with this channel. Keeping the videos informative and short.
@wobsoriano
@wobsoriano Ай бұрын
New subscriber here and loving your content!
@dmtrmrv
@dmtrmrv Ай бұрын
Welcome aboard!
@marcod.643
@marcod.643 Ай бұрын
We learn and "flex-grow" together. 😉😁
@dmtrmrv
@dmtrmrv Ай бұрын
I like that!
@RC-Flight
@RC-Flight Ай бұрын
Thanks for taking the time to make this video! 🇨🇦
@dmtrmrv
@dmtrmrv Ай бұрын
You are welcome! Thank you for your comment!
@patunolaibukun2506
@patunolaibukun2506 Ай бұрын
another eye opening video 👍 bless the day i met your channel
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you! Glad you are here!
@workacc1345
@workacc1345 Ай бұрын
sir please share code
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you for pointing it out. Here's the CodePen I used in the video: codepen.io/dmtrmrv/pen/xxBPowg
@workacc1345
@workacc1345 Ай бұрын
@@dmtrmrv Thank you for sharing the source code. I recently watched all of your CSS videos, and they were very helpful. I have many questions about CSS that I couldn't find proper answers to. Would you consider making videos addressing those questions? If yes, I will share my questions here in the chat.
@dmtrmrv
@dmtrmrv Ай бұрын
Absolutely! I’d love to hear your question. I’ll be happy to create videos on the subjects you have in mind, provided I have enough knowledge in those areas. You can also DM me in Twitter or LinkedIn if that’s more convenient for you.
@abcq1
@abcq1 Ай бұрын
Hi, Dmitry! Thanks for quality content. If I may ask humbly, do you accept requests on topics to cover?
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you! Yes! What kind of topic do you have in mind?
@abcq1
@abcq1 28 күн бұрын
@@dmtrmrv Thank you for responding! It may sound a bit broad, but the topic(s) i suggest is called "CSS at-rules", from @starting-style to @font-face and @media. I couldn't find any comprehensive content on this, and in my opinion, that would be great series
@Allformyequine
@Allformyequine Ай бұрын
Luv the explanation, thank you!
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you!
@MikE-zn9jd
@MikE-zn9jd Ай бұрын
Can you please make separate videos to grid and flexbox? ❤
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you for the suggestion! That might be in the plans, but I'm not certain yet. There are so many grid and flex videos out there... Which aspect of Grid and Flexbox feels confusing to you? Knowing this could help me identify the right approach for grid and flexbox tutorials. Thanks again!
@user-gp7rf5om4n
@user-gp7rf5om4n Ай бұрын
I discover your channel through this video recommended by youtube. Like the pace to explain the subject. Good content. 👍
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you. Glad you found the video helpful!
@youferret
@youferret Ай бұрын
Fantastic lesson Dmitry. I needed to hear this to help me get it straight in my head. Great channel - glad I found it.
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you. Glad you liked it!
@Lucky-uk9ff
@Lucky-uk9ff Ай бұрын
You can change the base size as well: Example :root{ Font-size: 62.5℅; } Body{ Font-size:1.6rem; } No more calculations, your base font size will change in root to 10px then in body change it 1.6rem which means 16px and so on. 62.5*16/100 = 10 Now, 2rem is 20px 2.5rem is 25px Hope this will help you...
@dmtrmrv
@dmtrmrv Ай бұрын
True, adjusting the base font size in this way does change the default font size for everything within the body. However, it doesn't address compatibility issues. Consider a scenario where we might use a package that includes the following: .dialog__content { font-size: 1rem; } The developers of this package assume that the default font size is 16px, but in our project, it's set to 10px. This discrepancy could lead to various problems. Not the end of the world, but something that could be avoided.
@anneyo5627
@anneyo5627 Ай бұрын
Never use margins on blocks...but whats then the best practice to create space?
@dmtrmrv
@dmtrmrv Ай бұрын
@anneyo5627 That's a great question. Ideally the spacing is created with properties like "gap" or by using the "lobotomized owl" technique. Check out the CodePen: codepen.io/dmtrmrv/pen/vYMEGpx?editors=1100 You can find examples of both: .grid { gap: var(--step-1); } .content-flow > * + * { margin-block-start: var(--step-1); } If that's not enough, we can always use margins on elements, because they aren't reused on their own. ".button" in the same CodePen is a good example. Look at the ".button__icon" element: .button__icon { margin-inline-start: var(--step--5); } All this allows us to reuse components in different contexts without any spacing overrides. Let me know if this answers the question!
@anneyo5627
@anneyo5627 Ай бұрын
Thank you so much! This was helpfull. First time i've heard of the 'lobotomized owl', interesting!
@dmtrmrv
@dmtrmrv Ай бұрын
@@anneyo5627 You are welcome! You can read more about it here: alistapart.com/article/axiomatic-css-and-lobotomized-owls/ The article is 10 years old, but it's still relevant. "gap" was not around at the time, but it's still not a full replacement.
@DVineMe
@DVineMe Ай бұрын
Why not simply set .card__description to flex: 1?
@dmtrmrv
@dmtrmrv Ай бұрын
That's a valid option and there is nothing wrong with using it. The margin technique could be useful in cases where you can't or don't want to use flex-grow.
@AJ-vy4yu
@AJ-vy4yu Ай бұрын
This deserves a million view. I had used BEM the wrong way.
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you @AJ-vy4yu! Curious what did you do differently?
@AJ-vy4yu
@AJ-vy4yu Ай бұрын
@@dmtrmrv I created elements of elements and blocks with too many elements, to name a few. I had really long-ass class names😆
@kJarzyna242
@kJarzyna242 Ай бұрын
Great video. I recently discovered your channel and I hope it continues to grow.
@dmtrmrv
@dmtrmrv Ай бұрын
Thank you!