Unit 4: Introduction to CSS

4.1 CSS Basics & Selectors

CSS Types:

CSS Selectors:

CSS Specificity: ID > Class > Element

4.2 Background, Text & Font Properties

Background Properties:

Text Properties:

Font Properties:

4.3 Box Model & Layout

Box Model Properties:

Display Properties:

Flexbox Properties:

Grid Layout Properties:

Positioning:

Practice Problems (Practical 7-9)

Practical 7: Create external CSS file with:
i) Paragraph with green color and italic for first line
ii) Heading selection background color grey
iii) Ordered list with capital roman letters, green color, 30px font
Practical 8: Create flexbox container with 4 child boxes:
- flex-direction: row
- justify-content: space-between
- align-items: center
- Third box with order: -1
Practical 9: Create CSS file with styles for:
i) Headings: 120% font size, normal style
ii) Class c1: bold paragraphs with 3cm margin
iii) Background: orange color + nature.jpg (horizontal repeat)
Q1: Explain CSS Specificity. Which selector has highest priority?
Q2: Differentiate between margin and padding.
Q3: What is box-sizing: border-box? Why is it useful?
Q4: Explain Flexbox properties: justify-content vs align-items.
Q5: How would you create a responsive grid layout with CSS Grid?
Q6: Differentiate between position: relative and position: absolute.
Q7: How do you include Google Fonts in your CSS?
Q8: Create a layout with header (fixed top), sidebar (fixed left), and main content using CSS positioning.
✨ Created by DRThummar ✨

💻 Comprehensive FSD Practical Exam Preparation Material

📅 Updated: 2026 | 📚 Course Code: 117013392

🔗 GitHub Repository