CSS
What does the vh unit stand for in CSS?
What does the vh unit stand for in CSS?
Anonymous Quiz
47%
Viewport Height
23%
Vertical Height
16%
Variable Height
14%
Viewport Horizontal
JavaScript
Which keyword is used to declare a constant variable in JavaScript?
Which keyword is used to declare a constant variable in JavaScript?
Anonymous Quiz
12%
var
6%
let
71%
const
10%
static
JavaScript
What will console.log(typeof []) output in JavaScript?
What will console.log(typeof []) output in JavaScript?
Anonymous Quiz
40%
object
32%
array
13%
undefined
15%
null
👍4
CSS Variables
CSS Variables (Custom Properties) let you reuse values like colors, font sizes, or spacing across your site, making your code cleaner and easier to manage.
Why Use CSS Variables?
#Efficiency Reuse values without repeating code.
#Consistency Keep design uniform across your site.
#Flexibility Update styles globally by changing one value
How to Use:
Define in :root:
Apply with var():
Use CSS variables to write cleaner, scalable, and maintainable styles
@etwebs
CSS Variables (Custom Properties) let you reuse values like colors, font sizes, or spacing across your site, making your code cleaner and easier to manage.
Why Use CSS Variables?
#Efficiency Reuse values without repeating code.
#Consistency Keep design uniform across your site.
#Flexibility Update styles globally by changing one value
How to Use:
Define in :root:
:root { --primary-color: #3498db; } Apply with var():
button { background-color: var(--primary-color); } Use CSS variables to write cleaner, scalable, and maintainable styles
@etwebs
🔥5
If you have any comments, please let me know about the content or anything else here Join the discussion group https://news.1rj.ru/str/codebyion
ʀᴇɢɪx
If you have any comments, please let me know about the content or anything else here Join the discussion group https://news.1rj.ru/str/codebyion
And also 🔔 Don’t miss out! Only 67% of our members have notifications enabled. Make sure to turn yours on so you stay updated! Also, don’t forget to drop a comment below Thank you! 🙏
👍5
This media is not supported in your browser
VIEW IN TELEGRAM
Simple but very beautiful hover effect for an image using CSS
The idea is to initially make the image black and white using the CSS filter
Telegram | tiktok
The idea is to initially make the image black and white using the CSS filter
grayscale() by setting it to 100%, and then change the value to 0 on hover. And also change the size of the image itself by setting scale:1.05Telegram | tiktok
🔥7👍2
Which of the following is NOT a primitive data type in JavaScript?
Anonymous Quiz
15%
String
13%
Number
57%
Object
15%
Boolean
👍4
What is the difference between == and === in JavaScript?
Anonymous Quiz
68%
== checks value only, === checks value and type
4%
Both are the same
14%
== is for numbers, === is for strings
14%
== checks type only, === checks value only
👍3❤1
What is the result of this code?
javanoscript
console.log(0.1 + 0.2 === 0.5);
javanoscript
console.log(0.1 + 0.2 === 0.5);
Anonymous Quiz
9%
true
67%
false
20%
undefined
3%
NaN
👍3
ʀᴇɢɪx
Simple web developer portfolio hero section with basics and fully responsive #hero @etwebs Drop your comment below 💬
Hero section.zip
519 KB
Source code
Don't forget to react for more content like this
Don't forget to react for more content like this
❤10👍1