π° DOM manipulation
We use JavaScript to access, modify, or create these elements, making our web pages come alive without the need to reload them.
π3
π€©A new channel has been created in which useful things will be published in web design with of source code.π₯π₯
πChannel join linkπ
https://t.me/Web_design3
πChannel join linkπ
https://t.me/Web_design3
β€4π3
Have you ever struggled to set 100% width on an item while also setting some margin for it I'm CSS? Once you know this trick you no longer have to!
π The "width" we set on CSS element is applied till the border of the element (content, padding and border)
But what if we want the element to have some margin as well but still fit inside the patent?
You may try to use some π§ math like calc(100% - 40px), but with the "stretch" keyword for the width property, CSS automatically does this for you.
π₯ This helps to easily fit an element inside it's parent even when it has some margin!
π1
π€©A new channel has been created in which useful things will be published in web design with of source code.π₯π₯
πChannel join linkπ
https://t.me/Web_design3
πChannel join linkπ
https://t.me/Web_design3
Telegram
Web design source code
design web
source code free
https://t.me/Web_design3
source code free
https://t.me/Web_design3
π° Did you know that CSS works even inside console.log()
Some cases where I have seen this being used in real life is for showing a warning for self XSS attacks - asking regular web users not to paste random code inside the dev console (yes, that's an actual attack)
π3β€1