Web Development
Learn Web Development From Scratch 0️⃣ HTML / CSS 1️⃣ JavaScript 2️⃣ React / Vue / Angular 3️⃣ Node.js / Express 4️⃣ REST API 5️⃣ SQL / NoSQL Databases 6️⃣ UI / UX Design 7️⃣ Git / GitHub Admin: @love_data
Mostrar más📈 Análisis del canal de Telegram Web Development
El canal Web Development (@webdevcoursefree) en el segmento lingüístico de Inglés es un actor destacado. Actualmente la comunidad reúne a 79 162 suscriptores, ocupando la posición 1 627 en la categoría Tecnologías y Aplicaciones y el puesto 3 712 en la región India.
📊 Métricas de audiencia y dinámica
Desde su creación el невідомо, el proyecto ha mostrado un crecimiento acelerado, reuniendo a 79 162 suscriptores.
Según los últimos datos del 14 noviembre, 2026, el canal mantiene una actividad estable. En los últimos 30 días la variación de miembros fue de -488, y en las últimas 24 horas de -24, conservando un alto alcance.
- Estado de verificación: No verificado
- Tasa de interacción (ER): El promedio de interacción de la audiencia es 2.33%. Durante las primeras 24 horas tras publicar, el contenido suele obtener 1.06% de reacciones respecto al total de suscriptores.
- Alcance de las publicaciones: Cada publicación recibe en promedio 1 845 visualizaciones. En el primer día suele acumular 837 visualizaciones.
- Reacciones e interacción: La audiencia responde de forma activa: el promedio de reacciones por publicación es 8.
- Intereses temáticos: El contenido se centra en temas clave como html, css, javascript, github, git.
📝 Descripción y política de contenido
El autor describe el recurso como un espacio para expresar opiniones subjetivas:
“Learn Web Development From Scratch
0️⃣ HTML / CSS
1️⃣ JavaScript
2️⃣ React / Vue / Angular
3️⃣ Node.js / Express
4️⃣ REST API
5️⃣ SQL / NoSQL Databases
6️⃣ UI / UX Design
7️⃣ Git / GitHub
Admin: @love_data”
Gracias a la alta frecuencia de actualizaciones (últimos datos recibidos el 15 noviembre, 2026), el canal mantiene la vigencia y un amplio alcance. La analítica demuestra que la audiencia interactúa activamente con el contenido, lo que lo convierte en un punto de referencia dentro de la categoría Tecnologías y Aplicaciones.
Cargando datos
| Fecha | Crecimiento de Suscriptores | Menciones | Canales | |
| 15 noviembre | 0 | |||
| 14 noviembre | 0 | |||
| 13 noviembre | +7 | |||
| 12 noviembre | 0 | |||
| 11 noviembre | 0 | |||
| 10 noviembre | +12 | |||
| 09 noviembre | 0 | |||
| 08 noviembre | 0 | |||
| 07 noviembre | 0 | |||
| 06 noviembre | 0 | |||
| 05 noviembre | 0 | |||
| 04 noviembre | +2 | |||
| 03 noviembre | +4 | |||
| 02 noviembre | +40 | |||
| 01 noviembre | +3 |
z-indexcontrols the stacking order of overlapping elements. An element with a higher stacking level generally appears in front of one with a lower stacking level, when they belong to the same stacking context.
<div class="box box1">Box 1</div>
<div class="box box2">Box 2</div>
.box {
position: absolute;
width: 150px;
height: 150px;
}
.box1 {
background-color: blue;
z-index: 1;
}
.box2 {
background-color: red;
left: 50px;
top: 50px;
z-index: 2;
}
Here, Box 2 appears in front of Box 1 where they overlap.
8. CSS Position Comparison
• static: Normal document flow
• relative: Moves relative to original position
• absolute: Positioned relative to nearest positioned ancestor
• fixed: Positioned relative to viewport
• sticky: Sticks after reaching a scroll threshold
9. Real-World Example: Product Image Badge
HTML:
<div class="product">
<span class="badge">SALE</span>
<img src="product.jpg" alt="Product">
<h2>Wireless Headphones</h2>
<p>Price: ₹2,499</p>
</div>
CSS:
.product {
position: relative;
width: 300px;
}
.product img {
width: 100%;
}
.badge {
position: absolute;
top: 10px;
right: 10px;
background-color: red;
color: white;
padding: 8px 12px;
border-radius: 5px;
}
The SALE badge appears in the top-right corner of the product image.
Double Tap ❤️ For More| 2 | • top: Distance from the top
• right: Distance from the right
• bottom: Distance from the bottom
• left: Distance from the left
7. What Is Z-Index?
z-index controls the stacking order of overlapping elements.
An element with a higher stacking level generally appears in front of one with a lower stacking level, when they belong to the same stacking context.
<div class="box box1">Box 1</div>
<div class="box box2">Box 2</div>
.box {
position: absolute;
width: 150px;
height: 150px;
}
.box1 {
background-color: blue;
z-index: 1;
}
.box2 {
background-color: red;
left: 50px;
top: 50px;
z-index: 2;
}
Here, Box 2 appears in front of Box 1 where they overlap.
8. CSS Position Comparison
• static: Normal document flow
• relative: Moves relative to original position
• absolute: Positioned relative to nearest positioned ancestor
• fixed: Positioned relative to viewport
• sticky: Sticks after reaching a scroll threshold
9. Real-World Example: Product Image Badge
HTML:
<div class="product">
<span class="badge">SALE</span>
<img src="product.jpg" alt="Product">
<h2>Wireless Headphones</h2>
<p>Price: ₹2,499</p>
</div>
CSS:
.product {
position: relative;
width: 300px;
}
.product img {
width: 100%;
}
.badge {
position: absolute;
top: 10px;
right: 10px;
background-color: red;
color: white;
padding: 8px 12px;
border-radius: 5px;
}
The SALE badge appears in the top-right corner of the product image.
Double Tap ❤️ For More
-----
1.38 ₽ · /balance_help | 2 |
| 3 | 🌐 Web Development Roadmap: Part 33
CSS Positioning (Static, Relative, Absolute, Fixed & Sticky)
CSS positioning controls where an HTML element appears on a webpage.
It allows you to place elements in specific locations, overlap elements, create floating buttons, and build sticky navigation bars.
There are five important CSS position values:
• static
• relative
• absolute
• fixed
• sticky
1. Position: Static
static is the default positioning behavior of HTML elements.
Elements appear in the normal document flow.
.box {
position: static;
}
Important points:
• Elements follow the normal page layout.
• They appear one after another according to the document structure.
• top, right, bottom, and left do not reposition a static element.
2. Position: Relative
relative positions an element relative to its original position.
<div class="box">Hello World</div>
.box {
position: relative;
top: 20px;
left: 30px;
}
What happens?
• The element moves 20px down.
• The element moves 30px to the right.
• Its original space in the document flow remains reserved.
Real-world use: Making small adjustments to an element or creating a positioning reference for an absolutely positioned child.
3. Position: Absolute
absolute positions an element relative to its nearest positioned ancestor.
A positioned ancestor means an ancestor whose position is not static.
Example:
<div class="parent">
<div class="child">Hello</div>
</div>
.parent {
position: relative;
width: 300px;
height: 200px;
background-color: lightblue;
}
.child {
position: absolute;
top: 10px;
right: 10px;
background-color: orange;
}
Here:
• The parent acts as the positioning reference.
• The child appears 10px from the parent's top and right edges.
• The child is removed from the normal document flow.
Real-world use: Badges on product images, notification labels, and icons inside input fields.
4. Position: Fixed
fixed positions an element relative to the viewport.
It generally stays in the same position even when the user scrolls the webpage.
.chat-button {
position: fixed;
bottom: 20px;
right: 20px;
background-color: blue;
color: white;
padding: 15px;
}
Real-world use:
• Floating chat buttons
• Back-to-top buttons
• Fixed action buttons
5. Position: Sticky
sticky combines normal document flow with fixed-like behavior.
The element behaves normally until it reaches a specified scroll position, then sticks within its scrolling container.
nav {
position: sticky;
top: 0;
background-color: navy;
color: white;
}
Here, the navigation bar sticks to the top when the page is scrolled to it.
Common uses:
• Sticky navigation bars
• Table headers
• Section headings
6. Understanding Top, Right, Bottom & Left
These properties control the position of an element when used with a positioning mode that supports offsets.
.box {
position: absolute;
top: 20px;
right: 30px;
bottom: 10px;
left: 40px;
} | 337 |
| 4 | 𝟰 𝗙𝗥𝗘𝗘 𝗖𝗼𝘂𝗿𝘀𝗲𝘀 𝗧𝗼 𝗠𝗮𝘀𝘁𝗲𝗿 𝗘𝘅𝗰𝗲𝗹 𝗙𝗼𝗿 𝗙𝗥𝗘𝗘 📊
🎓 Explore 4 FREE Excel Courses to upgrade your skills!
✅ Excel Formulas & Functions
✅ Pivot Tables & Charts
✅ Data Cleaning & Analysis
✅ Dashboards & Reporting
🎯 Perfect for Students, Freshers & Aspiring Data Analysts!
🔗 𝗟𝗶𝗻𝗸 👇:-
https://pdlink.in/48mO4B2
📌 SAVE & SHARE with friends who want to master Excel! 🔥 | 479 |
| 5 | 𝗙𝗥𝗘𝗘 𝗩𝗜𝗥𝗧𝗨𝗔𝗟 𝗜𝗡𝗧𝗘𝗥𝗡𝗦𝗛𝗜𝗣𝗦 𝗪𝗜𝗧𝗛 𝗧𝗢𝗣 𝗖𝗢𝗠𝗣𝗔𝗡𝗜𝗘𝗦! 🎓
💻 Explore FREE Virtual Internship & Job Simulation Programs from leading companies!
✅ Learn Industry-Relevant Skills
✅ Work on Practical Tasks
✅ Self-Paced Online Learning
✅ Explore Completion Certificates
✅ Strengthen Your Resume & LinkedIn Profile
🎯 Perfect for Students, Freshers & Job Seekers
🔗 𝗟𝗶𝗻𝗸 👇:-
https://pdlink.in/4t8DRlq
📲 SAVE & SHARE with friends looking for career opportunities! | 660 |
| 6 | 𝗙𝗥𝗘𝗘 𝗥𝗲𝘀𝗼𝘂𝗿𝗰𝗲𝘀 𝗧𝗼 𝗚𝗲𝘁 𝗬𝗼𝘂𝗿 𝗗𝗿𝗲𝗮𝗺 𝗝𝗼𝗯 𝗜𝗡 𝗚𝗼𝗼𝗴𝗹𝗲🔥
Discover *4 FREE resources* to help you prepare for a career at Google!
✅ Improve Your Coding Skills
✅ Strengthen Interview Preparation
✅ Build Technical Knowledge
✅ Prepare for Top Tech Opportunities
🎓Perfect for Students, Freshers & Aspiring Software Engineers!
🔗 𝗟𝗶𝗻𝗸 👇:-
https://pdlink.in/4AwRPQy
📲 SAVE & SHARE with friends dreaming of working at Google! | 933 |
| 7 | 𝟯 𝗙𝗥𝗘𝗘 𝗛𝘂𝗯𝗦𝗽𝗼𝘁 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻𝘀 𝗳𝗼𝗿 𝗦𝘁𝘂𝗱𝗲𝗻𝘁𝘀 & 𝗙𝗿𝗲𝘀𝗵𝗲𝗿𝘀 𝗶𝗻 𝟮𝟬𝟮𝟲🎓
💫HubSpot Academy offers three free online certifications that match these interests.
💫Pick one free course and try it out on your next college event and the certification is free.
🔗 𝗟𝗶𝗻𝗸 :- 👇
https://pdlink.in/4iM5xaQ
📲 *Save & Share with your friends! 🔥* | 1 010 |
| 8 | Outlines are especially useful for keyboard focus indicators.
Example:
input:focus {
outline: 2px solid blue;
}
This makes the focused input easier to identify.
5. CSS Box Shadow
The box-shadow property adds a shadow around an element.
.card {
width: 250px;
padding: 20px;
background-color: white;
box-shadow: 5px 5px 10px gray;
}
The basic syntax:
box-shadow: horizontal vertical blur spread color;
Understanding the values:
• Horizontal, Moves the shadow left or right.
• Vertical, Moves the shadow up or down.
• Blur, Controls how blurry the shadow appears.
• Spread, Controls the shadow's size.
• Color, Defines the shadow color.
.card {
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}
6. Inset Box Shadow
An inset shadow appears inside the element rather than outside it.
.box {
box-shadow: inset 0 0 10px gray;
}
This can create an inner-depth effect.
7. Multiple Shadows
You can apply more than one shadow to an element.
.card {
box-shadow:
0 4px 8px rgba(0, 0, 0, 0.15),
0 10px 20px rgba(0, 0, 0, 0.10);
}
This creates a layered shadow effect.
8. Real-World Example: Modern Product Card
HTML:
<div class="product-card">
<h2>Wireless Headphones</h2>
<p>Price: ₹2,499</p>
<button>Buy Now</button>
</div>
CSS:
.product-card {
width: 300px;
padding: 20px;
border: 1px solid #ddd;
border-radius: 12px;
background-color: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
button {
padding: 10px 20px;
border: none;
border-radius: 6px;
background-color: blue;
color: white;
cursor: pointer;
}
This creates a clean product card with rounded corners and a subtle shadow.
Double Tap ❤️ For More
-----
1.24 ₽ · /balance_help | 1 289 |
| 9 | 🌐 Web Development Roadmap: Part 32
CSS Borders, Border Radius, Outline & Box Shadow
These CSS properties help you improve the appearance of webpage elements by adding borders, rounded corners, outlines, and shadows.
Let's understand each one.
1. CSS Border
The border property adds a visible line around an HTML element.
.box {
border: 2px solid black;
}
A border has three main components:
• Width, Thickness of the border.
• Style, Appearance of the border.
• Color, Border color.
You can also define them separately:
.box {
border-width: 2px;
border-style: solid;
border-color: blue;
}
Common border styles:
border-style: solid;
border-style: dashed;
border-style: dotted;
border-style: double;
border-style: groove;
border-style: ridge;
border-style: none;
2. Individual Border Properties
You can apply borders to specific sides of an element.
.box {
border-top: 2px solid red;
border-right: 2px solid blue;
border-bottom: 2px solid green;
border-left: 2px solid orange;
}
This gives each side a different border.
You can also use:
.box {
border-bottom: 3px solid black;
}
This adds a border only to the bottom.
3. Border Radius
The border-radius property creates rounded corners.
.box {
border: 2px solid black;
border-radius: 10px;
}
Common examples:
/* Slightly rounded */
.box1 {
border-radius: 5px;
}
/* More rounded */
.box2 {
border-radius: 20px;
}
/* Circular shape for a square element */
.box3 {
border-radius: 50%;
}
You can also round individual corners:
.box {
border-top-left-radius: 10px;
border-top-right-radius: 20px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 15px;
}
4. CSS Outline
An outline is a line drawn outside an element's border.
.box {
border: 2px solid black;
outline: 3px solid red;
}
Border vs Outline: | 942 |
| 10 | 🚀🔥𝗚𝗢𝗢𝗚𝗟𝗘 𝗖𝗟𝗢𝗨𝗗 – 𝟰 𝗙𝗥𝗘𝗘 𝗖𝗢𝗨𝗥𝗦𝗘𝗦! ☁️📊
Learn *Data Analytics, BigQuery, Data Engineering & Looker* for FREE!
✅ Beginner-Friendly Learning
✅ Build In-Demand Tech Skills
✅ Boost Your Resume & Career Opportunities
🎯 Perfect for Students, Freshers & Job Seekers!
🔗 𝗟𝗶𝗻𝗸 :- 👇
https://pdlink.in/4AttkUb
📲 Save & Share with your friends! 🔥 | 921 |
| 11 | 🎓 𝟰 𝗖𝗲𝗿𝘁𝗶𝗳𝗮𝘁𝗶𝗼𝗻𝘀 𝗧𝗼 𝗠𝗮𝘀𝘁𝗲𝗿 𝗜𝗻 𝟮𝟬𝟮𝟲 🚀
Want to build job-ready skills and strengthen your resume? Start learning these in-demand technologies
📊 𝗗𝗮𝘁𝗮 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀 :- https://pdlink.in/45vk5ph
💫 𝗙𝘂𝗹𝗹𝘀𝘁𝗮𝗰𝗸 :- https://pdlink.in/3SuUeuD
☁️ 𝗗𝗮𝘁𝗮 𝗦𝗰𝗶𝗲𝗻𝗰𝗲 :- :- https://pdlink.in/48kyZjt
🛡️ 𝗔𝗜 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿𝗶𝗻𝗴 :- :- https://pdlink.in/4fWJVID
🔁 𝗦𝗵𝗮𝗿𝗲 this with your friends and classmates! | 1 165 |
| 12 | 🌐 Web Development Roadmap - Part 31
CSS Width, Height & Overflow
CSS width, height, and overflow properties control the dimensions of HTML elements and how their content behaves when it doesn't fit inside them.
These properties are important for creating properly sized, responsive website layouts.
1. Width Property
The width property defines the width of an element.
<div class="box">
Welcome to CSS
</div>
`
.box {
width: 300px;
background-color: lightblue;
}
Here, the element has a width of 300px.
You can use different units:
.box {
width: 300px;
}
.container {
width: 80%;
}
.section {
width: 100vw;
}
2. Height Property
The height property defines the height of an element.
.box {
width: 300px;
height: 150px;
background-color: lightgreen;
}
Here:
• Width = 300px
• Height = 150px
You can also use relative units:
.hero {
height: 100vh;
}
This makes the hero section as tall as the viewport.
3. Min-Width
min-width defines the minimum width an element can have.
.box {
width: 50%;
min-width: 250px;
}
Even if the available space becomes smaller, the element won't shrink below 250px.
4. Max-Width
max-width defines the maximum width an element can have.
.container {
width: 100%;
max-width: 1200px;
margin: auto;
}
This is commonly used to prevent content from becoming excessively wide on large screens.
5. Min-Height and Max-Height
These properties control the minimum and maximum height of an element.
.box {
min-height: 100px;
max-height: 300px;
}
• min-height: The element cannot become shorter than 100px.
• max-height: The element cannot become taller than 300px.
6. What Is Overflow?
Overflow happens when the content inside an element is larger than the available space.
Example:
.box {
width: 200px;
height: 100px;
overflow: hidden;
}
If the content exceeds the box dimensions, some content will be clipped.
7. Types of Overflow
A. overflow: visible
This is the default behavior.
Content can appear outside the element's boundaries.
.box {
overflow: visible;
}
B. overflow: hidden
Extra content is clipped and not displayed.
.box {
overflow: hidden;
}
C. overflow: scroll
Displays scrollbars so users can access overflowing content.
.box {
overflow: scroll;
}
D. overflow: auto
The browser provides scrolling when necessary.
.box {
overflow: auto;
}
8. Overflow-X and Overflow-Y
You can control horizontal and vertical overflow separately.
.box {
overflow-x: auto;
overflow-y: hidden;
}
• overflow-x: Controls horizontal overflow.
• overflow-y: Controls vertical overflow.
Useful for horizontally scrollable menus, tables, and content areas.
9. Real-World Example: Responsive Card
HTML:
<div class="card">
<h2>Learn Web Development</h2>
<p>
Learn HTML, CSS and JavaScript
to build modern websites.
</p>
</div>
CSS:
.card {
width: 100%;
max-width: 400px;
min-height: 200px;
padding: 20px;
margin: auto;
background-color: lightblue;
border-radius: 10px;
overflow: auto;
}
`
This creates a card that:
• Uses available width.
• Never exceeds 400px.
• Has a minimum height of 200px.
• Allows scrolling if its content overflows.
10. Quick Revision
• width: Sets element width
• height: Sets element height
• min-width: Sets minimum width
• max-width: Sets maximum width
• min-height: Sets minimum height
• max-height: Sets maximum height
• overflow: Controls overflowing content
• overflow-x: Controls horizontal overflow
• overflow-y: Controls vertical overflow
Key Takeaway
• Use width and height to define dimensions.
• Use min-width and max-width to control flexible sizing.
• Use min-height and max-height to control vertical dimensions.
• Use overflow when content doesn't fit inside its container. | 1 392 |
| 13 | 🚀 𝗠𝗜𝗖𝗥𝗢𝗦𝗢𝗙𝗧 + 𝗟𝗜𝗡𝗞𝗘𝗗𝗜𝗡 𝗙𝗥𝗘𝗘 𝗖𝗢𝗨𝗥𝗦𝗘𝗦! 🎓🔥
😍 Explore 5 FREE Career Learning Paths to boost your resume!
📊 Data Analytics | ☁️ Cloud Computing | 🤖 AI | 🔐 Cybersecurity | 💻 Software Development
✅ Learn In-Demand Skills
✅ Explore Certificate Opportunities
✅ Perfect for Students, Freshers & Job Seekers
🔗 𝗟𝗶𝗻𝗸 :- 👇
https://pdlink.in/4eOufX9
📲 Share with your friends! 🔥 | 1 007 |
| 14 | HTML:
<div class="card">
<h2>Laptop</h2>
<p>Price: ₹50,000</p>
<button>Buy Now</button>
</div>
CSS:
* {
box-sizing: border-box;
}
.card {
width: 300px;
padding: 20px;
margin: 20px;
border: 2px solid gray;
border-radius: 10px;
}
button {
padding: 10px 20px;
border: none;
background-color: blue;
color: white;
}
Here:
• Width controls the card's size.
• Padding creates inner spacing.
• Border creates an outline.
• Margin creates outer spacing.
• Border radius rounds the corners.
8. Quick Revision
• content: Actual element content
• padding: Space inside the border
• border: Line around the element
• margin: Space outside the border
• box-sizing: Controls size calculation
• border-radius: Rounds the corners
Key Takeaway
Remember this simple rule:
• Content = What is inside?
• Padding = How much inner space?
• Border = What surrounds it?
• Margin = How much outer space?
Understanding the Box Model will help you control spacing, dimensions, and layouts when designing professional websites.
Double Tap ❤️ For More | 1 485 |
| 15 | 🌐 Web Development Roadmap: Part 29
CSS Box Model
The CSS Box Model is one of the most important concepts in CSS.
Every HTML element displayed on a webpage is treated as a rectangular box.
The CSS Box Model explains how much space an element occupies and how spacing is calculated.
There are four main components:
• Content
• Padding
• Border
• Margin
1. Content
Content is the actual information inside an HTML element.
It can be:
• Text
• Images
• Videos
• Other HTML elements
Example:
<div class="box">
Hello World
</div>
.box {
width: 200px;
height: 100px;
}
Here, the content area has a width of 200px and a height of 100px.
2. Padding
Padding is the space between the content and the border.
Think of it as the inner spacing of an element.
.box {
padding: 20px;
}
This adds 20px of space around the content, inside the border.
You can also control individual sides:
.box {
padding-top: 10px;
padding-right: 20px;
padding-bottom: 10px;
padding-left: 20px;
}
Shorthand:
.box {
padding: 10px 20px;
}
This means:
• Top and bottom: 10px
• Left and right: 20px
3. Border
A border is the line surrounding the content and padding.
.box {
border: 2px solid black;
}
A border has three important parts:
border-width → Thickness
border-style → Appearance
border-color → Color
Common border styles:
• solid
• dashed
• dotted
• double
• none
.box {
border-width: 2px;
border-style: dashed;
border-color: blue;
}
You can also create rounded corners:
.box {
border-radius: 10px;
}
4. Margin
Margin is the space outside the border.
It creates distance between an element and other elements.
.box {
margin: 20px;
}
This adds 20px of outer spacing around the element.
Individual sides:
.box {
margin-top: 10px;
margin-right: 20px;
margin-bottom: 10px;
margin-left: 20px;
}
Understanding the Complete Box Model
!Box Model Demystified: Margin, Border, Padding & Content - Euron Daily | Euron Community (https://images.openai.com/static-rsc-4/6QJcx04vBL9VuPb5kAm42ecvX0rwhhY6hbJ2wCXzsWp7qVEOFFzO5qpDH8ddAuR402U1Elwak6mv71o_MeVh_LagfLO16F2oQQtq74fIFPDo3SvJTRKz9Zt2LD4AZmdZDmSDpMr2NOhKUkD6oKj4jRKEu91aVGc9KYwmwZF8iwwPPppNylNX2OKr7jcMX7ta?purpose=fullsize)
Remember the order:
OUTSIDE
┌──────────────────────────┐
│ MARGIN │
│ ┌────────────────────┐ │
│ │ BORDER │ │
│ │ ┌──────────────┐ │ │
│ │ │ PADDING │ │ │
│ │ │ ┌────────┐ │ │ │
│ │ │ │CONTENT │ │ │ │
│ │ │ └────────┘ │ │ │
│ │ └──────────────┘ │ │
│ └────────────────────┘ │
└──────────────────────────┘
5. Understanding Box Size Calculation
By default, CSS uses content-box.
Consider this example:
.box {
width: 200px;
padding: 20px;
border: 5px solid black;
margin: 10px;
}
The total width is calculated as:
• Content: 200px
• Left and right padding: 40px
• Left and right border: 10px
• Left and right margin: 20px
• Total space: 270px
So, the element occupies 270px of horizontal space, including its margins.
6. What Is box-sizing?
The box-sizing property controls how the browser calculates an element's dimensions.
There are two commonly used values:
A. content-box
This is the default value.
The specified width applies only to the content.
.box {
width: 200px;
padding: 20px;
border: 5px solid black;
box-sizing: content-box;
}
Total width excluding margin = 250px.
B. border-box
With border-box, the specified width includes content, padding, and border.
.box {
width: 200px;
padding: 20px;
border: 5px solid black;
box-sizing: border-box;
}
Total width excluding margin = 200px.
Many developers use this globally:
* {
box-sizing: border-box;
}
This makes sizing and layout calculations easier. | 1 257 |
| 16 | 𝗚𝗢𝗢𝗚𝗟𝗘 𝟱 𝗙𝗥𝗘𝗘 𝗧𝗘𝗖𝗛 𝗖𝗢𝗨𝗥𝗦𝗘𝗦 𝟮𝟬𝟮𝟲! 🎓💻
Explore 5 FREE Google learning courses to build in-demand technical skills and strengthen your resume! 🚀
✅ FREE Learning Resources
✅ Beginner-Friendly Courses
✅ Learn at Your Own Pace
✅ Explore Hands-On Learning Opportunities
✅ Build Skills for AI, ML & Cloud Careers
🔗 𝗟𝗶𝗻𝗸 :- 👇
https://pdlink.in/4kMcA5X
⚡ Don't wait to upgrade your skills — start learning today! | 1 208 |
| 17 | 🌐 Web Development Roadmap — Part 28
CSS Text & Fonts
CSS text and font properties help you control how text looks on a webpage.
You can change font styles, sizes, thickness, alignment, spacing, and decoration.
1. font-family
The font-family property defines which font is displayed.
h1 {
font-family: Arial, sans-serif;
}
p {
font-family: Georgia, serif;
}
Common font families:
• Arial
• Times New Roman
• Georgia
• Verdana
• Courier New
• Tahoma
You can also provide fallback fonts:
body {
font-family: Arial, Helvetica, sans-serif;
}
If the first font isn't available, the browser tries the next one.
2. font-size
Controls the size of the text.
h1 {
font-size: 32px;
}
p {
font-size: 18px;
}
You can use different units such as px, em, and rem.
3. font-weight
Controls how thick or bold the text appears.
h1 {
font-weight: bold;
}
p {
font-weight: normal;
}
Common values:
+-------+------------+
| Value | Meaning |
+-------+------------+
| 100 | Thin |
| 300 | Light |
| 400 | Normal |
| 500 | Medium |
| 600 | Semi-bold |
| 700 | Bold |
| 900 | Extra bold |
+-------+------------+
The availability of each weight depends on the font.
4. font-style
Controls whether text appears normal, italic, or oblique.
p {
font-style: italic;
}
Common values:
• normal
• italic
• oblique
5. text-align
Controls the horizontal alignment of text.
h1 {
text-align: center;
}
Common values:
text-align: left;
text-align: right;
text-align: center;
text-align: justify;
6. text-decoration
Adds or removes decorative lines from text.
h1 {
text-decoration: underline;
}
Common values:
• underline – Line below text
• overline – Line above text
• line-through – Line through text
• none – Removes decoration
Example:
a {
text-decoration: none;
}
This is commonly used to remove the default underline from links.
7. text-transform
Controls the capitalization of text.
.uppercase {
text-transform: uppercase;
}
.lowercase {
text-transform: lowercase;
}
.capitalize {
text-transform: capitalize;
}
For example, hello world becomes:
• Uppercase: HELLO WORLD
• Lowercase: hello world
• Capitalize: Hello World
8. line-height
Controls the vertical space between lines of text.
p {
line-height: 1.6;
}
A suitable line height makes paragraphs easier to read.
9. letter-spacing
Controls the spacing between individual characters.
h1 {
letter-spacing: 2px;
}
10. word-spacing
Controls the spacing between words.
p {
word-spacing: 5px;
}
11. text-indent
Adds indentation to the first line of a paragraph.
p {
text-indent: 30px;
}
12. Google Fonts
Google Fonts provides a large collection of fonts that you can use in websites.
For example, you can use the Roboto font.
Add this inside the HTML <head>:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
Then apply it using CSS:
body {
font-family: "Roboto", sans-serif;
}
13. Real-World Example
Let's design a simple heading and paragraph.
HTML:
<div class="content">
<h1>Learn Web Development</h1>
<p>
Start your journey with HTML, CSS and JavaScript.
</p>
</div>
CSS:
.content {
font-family: Arial, sans-serif;
text-align: center;
}
h1 {
font-size: 32px;
font-weight: 700;
color: blue;
letter-spacing: 1px;
}
p {
font-size: 18px;
line-height: 1.6;
color: gray;
}
This creates a clean heading and readable paragraph.
Double Tap ❤️ For Part-29 | 1 728 |
| 18 | 🚀 𝗔𝗜 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗖𝗼𝘂𝗿𝘀𝗲 😍| 𝗕𝗲𝗰𝗼𝗺𝗲 𝗮𝗻 𝗔𝗜 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿
This AI engineering course online is structured around AI fundamentals, full-stack development, real-world AI projects
💫2000+ Students Placed
🎥 Live Classes + Session Recordings
👨💻 1:1 Mentorship & Doubt Support
💼 Interview Preparation & Placement Assistance
𝗕𝗼𝗼𝗸 𝗮 𝗙𝗥𝗘𝗘 𝗗𝗲𝗺𝗼👇:-
https://pdlink.in/4fWJVID
🔥 Take the next step towards building your career in AI! | 1 613 |
| 19 | What does grid-template-columns: 1fr 1fr; create? | 2 562 |
| 20 | Which CSS unit represents 1% of the viewport width? | 2 365 |
