Extremely helpful, especially your code pen. I'm curious how you approach a larger project using Utopia. Huge thanks!
@gaming_with_raza78673 күн бұрын
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?
@pappapez10 күн бұрын
Thanks! This is insanely important stuff. And you explain it so well. You almost make css make sense!
@dmtrmrv10 күн бұрын
Thank you : ) I swear it does! Well, most of the times.
@Tesfamichael.G10 күн бұрын
Nice lesson!
@dmtrmrv10 күн бұрын
Glad you enjoyed it!
@alexmacol22810 күн бұрын
Thank you so much! Your explanation is so clear and I never knew that trick! Thank you!
@alexmacol22810 күн бұрын
Thank you!!! Again another great explanation!
@dmtrmrv10 күн бұрын
My pleasure! Glad you found it helpful!
@MissEAG10 күн бұрын
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!
@dmtrmrv7 күн бұрын
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.
@alexmacol22810 күн бұрын
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!
@dmtrmrv10 күн бұрын
@alexmacol228 Thank you, Alex! Welcome aboard, glad you are enjoying the videos!
@douvogiannisgeorge10 күн бұрын
as always explain for humans ;) cant wait for more!
@dmtrmrv10 күн бұрын
Thank you! Glad to hear the explanation was easy to understand!
@Nusamaxa11 күн бұрын
that "OMG" reaction to the text-input's width was absolutely epic! 😎✌
@dmtrmrv10 күн бұрын
Well, that was genuinely how I felt when I first started learning CSS, lol!
@Nusamaxa10 күн бұрын
@@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 😁
@onelook187011 күн бұрын
How to make font-family inherit for form elements if it is set in body?
@dmtrmrv9 күн бұрын
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.
@onelook18709 күн бұрын
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-8 күн бұрын
@@onelook1870 That seems to be right, but let's wait for Dmitry confirmation. Thanks for the input (no pun intended). 🙂
@vertigoz12 күн бұрын
5:00 2rem should be equal to that of .pixel, but why is that html that is 16pixel by default changes and not .pixel?
@dmtrmrv10 күн бұрын
@vertigoz Not sure I fully understand the question 🤔
@vertigoz10 күн бұрын
@@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
@dmtrmrv9 күн бұрын
@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?
@vertigoz9 күн бұрын
@@dmtrmrv Yes, thanks! :)
@vertigoz12 күн бұрын
I still don't understand why there's no babana for scale...
@dmtrmrv10 күн бұрын
Maybe we can propose 1bbs (one big banana scale) for those really large elements.
@frozentoy420912 күн бұрын
Keep up the great work Dmitry, love your pace and articulation 🙌🏻 - have a splendid day
@dmtrmrv12 күн бұрын
Thank you! 🙌
@jamesreagan417914 күн бұрын
Hi Dima, we met at GitHub Universe last year. Your channel is going awesome and I’m a fan!
@vt998815 күн бұрын
Can't wait for new videos ❤
@dmtrmrv12 күн бұрын
Coming very soon!
@valery314916 күн бұрын
Oh my god! I'm looking for this video for a while ! Very very interesting and well explained! I thank you a lot!
@dmtrmrv16 күн бұрын
Thank you! Glad it was helpful!
@rogerpence17 күн бұрын
I'm in for all of your ideas, Dima!
@kJarzyna24218 күн бұрын
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.
@dmtrmrv17 күн бұрын
Thank you for the kind words! 😊
@jonasgpayer18 күн бұрын
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?
@dmtrmrv9 күн бұрын
Hey @jonasgpayer, do you have a CodePen or something like that I can look at?
@ontheruntonowhere18 күн бұрын
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.
@dmtrmrv17 күн бұрын
Thank you! I'm glad to hear you enjoy the videos. React is a lot of fun-I really like it!
@_kovshenin18 күн бұрын
Good stuff, looking forward!
@goannacs686118 күн бұрын
🤩 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.
@dmtrmrv17 күн бұрын
Thanks for your comment! Yes, those are great topics and not very straightforward. I'll definitely cover them!
@Nusamaxa22 күн бұрын
Honestly, sometimes i get AI to write me CSS and even JS code for animations and stuff 🤫
@dmtrmrv21 күн бұрын
Nothing wrong with that! It's a mistake not to use AI these days as long as one understands what they are doing.
@marever1324 күн бұрын
Helpful video! Thank's a'lot!
@dmtrmrv24 күн бұрын
Glad you liked it!
@DraganEror25 күн бұрын
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.
@dmtrmrv25 күн бұрын
That’s another great example! I really like that we have this option now to delegate tasks like that to AI.
@ahmadbaghereslami79625 күн бұрын
thanks for sharing
@Emre-yx6vw26 күн бұрын
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.
@dmtrmrv26 күн бұрын
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.
@toptravelingoffers766626 күн бұрын
AI name??
@dmtrmrv26 күн бұрын
I used ChatGPT (GPT 4) for this.
@toptravelingoffers766626 күн бұрын
@@dmtrmrv Thanks❤❤
@youferret26 күн бұрын
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.
@dmtrmrv26 күн бұрын
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.
@DMC88826 күн бұрын
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.
@dmtrmrv26 күн бұрын
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.
@DMC88826 күн бұрын
@@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Ай бұрын
I'm learning! Thanks Dmitry.
@dmtrmrvАй бұрын
My pleasure!
@douvogiannisgeorgeАй бұрын
i like your videos because its to the point, keep upp like this :)
@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Ай бұрын
New subscriber here and loving your content!
@dmtrmrvАй бұрын
Welcome aboard!
@marcod.643Ай бұрын
We learn and "flex-grow" together. 😉😁
@dmtrmrvАй бұрын
I like that!
@RC-FlightАй бұрын
Thanks for taking the time to make this video! 🇨🇦
@dmtrmrvАй бұрын
You are welcome! Thank you for your comment!
@patunolaibukun2506Ай бұрын
another eye opening video 👍 bless the day i met your channel
@dmtrmrvАй бұрын
Thank you! Glad you are here!
@workacc1345Ай бұрын
sir please share code
@dmtrmrvАй бұрын
Thank you for pointing it out. Here's the CodePen I used in the video: codepen.io/dmtrmrv/pen/xxBPowg
@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Ай бұрын
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Ай бұрын
Hi, Dmitry! Thanks for quality content. If I may ask humbly, do you accept requests on topics to cover?
@dmtrmrvАй бұрын
Thank you! Yes! What kind of topic do you have in mind?
@abcq128 күн бұрын
@@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Ай бұрын
Luv the explanation, thank you!
@dmtrmrvАй бұрын
Thank you!
@MikE-zn9jdАй бұрын
Can you please make separate videos to grid and flexbox? ❤
@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Ай бұрын
I discover your channel through this video recommended by youtube. Like the pace to explain the subject. Good content. 👍
@dmtrmrvАй бұрын
Thank you. Glad you found the video helpful!
@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Ай бұрын
Thank you. Glad you liked it!
@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Ай бұрын
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Ай бұрын
Never use margins on blocks...but whats then the best practice to create space?
@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Ай бұрын
Thank you so much! This was helpfull. First time i've heard of the 'lobotomized owl', interesting!
@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Ай бұрын
Why not simply set .card__description to flex: 1?
@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Ай бұрын
This deserves a million view. I had used BEM the wrong way.
@dmtrmrvАй бұрын
Thank you @AJ-vy4yu! Curious what did you do differently?
@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Ай бұрын
Great video. I recently discovered your channel and I hope it continues to grow.