All Subjects
Free · 283 Topics · No Signup

CSS Notes

Style and lay out web pages — selectors, box model, flexbox, grid and responsive design — written by Coding Now Tech Institute's mentors. Free to read, structured to actually help you learn.

CSS notes by Coding Now Tech Institute cover 283 topics — from css home to 12-column layout — each explained with short definitions, syntax and runnable code examples. They are 100% free, need no signup, and work as quick revision for college exams, CSS interviews and Coding Now Tech Institute's mentor-led CSS course in Pitampura, Delhi.

No notes found. Try a different search term, or browse all CSS notes.

CSS Tutorial

115 of 115 topics published
1

CSS HOME

CSS is what turns plain HTML into polished, responsive designs, and no frontend role exists without it. This free track covers selectors, layout, flexbox, grid, animation and responsive design.

2

CSS Introduction

Cascading Style Sheets control how web pages look — colours, spacing, fonts and layout. Learn what CSS does, how it pairs with HTML, and why the cascade is the key idea.

3

CSS Syntax

CSS syntax is selector-plus-declarations, with properties and values in braces. Mastering this small grammar lets you style anything on a page.

4

CSS Selectors

Selectors target which elements a rule applies to — by tag, class, id or relationship. Choosing precise selectors keeps stylesheets maintainable.

5

Grouping Selectors

Grouping selectors shares one rule across several elements with commas, cutting repetition. It keeps related styles in one obvious place.

6

CSS How To

CSS reaches a page in three ways: inline styles, a style block, or an external stylesheet. External stylesheets are the professional standard.

7

Add Internal CSS

Internal CSS lives in a style tag in the page head, useful for single pages. Learn when this is the right tool versus a shared stylesheet.

8

Add Inline Style

Inline styles apply directly to one element through its style attribute. Powerful in emergencies, but they break the separation of concerns.

9

Multiple Style Sheets

Multiple stylesheets combine through layers of cascade rules, useful for splitting large projects. Understanding load order prevents surprises.

10

CSS Comments

Comments explain sections of CSS and are ignored by browsers. Organised stylesheets document their intent like code does.

11

CSS Errors

Browsers silently ignore invalid CSS rather than crashing, which makes spotting mistakes harder. Learn common syntax errors and how to find them.

12

CSS Colors

CSS accepts colours by name, hex, RGB and HSL, giving designers full control. Colour choice sets the mood of an entire interface.

13

RGB / RGBA

RGB defines colours by red, green and blue channels, with RGBA adding transparency. It is the colour model of every screen.

14

HEX / HEXA

Hex codes like #ff6347 are the most common colour format in CSS, and hexa adds an alpha channel. They pack colour into one short string.

15

HSL / HSLA

HSL describes colours as hue, saturation and lightness — often easier to tweak by hand. HSLA adds transparency to the model.

16

CSS Backgrounds

Backgrounds fill elements with colour or images, behind all content. This topic covers the properties every page design leans on.

17

Background Image

Background images decorate elements without changing document flow. Positioning and sizing them well is a core layout skill.

18

Background Repeat

Background repeat controls how images tile — horizontally, vertically or not at all. It is the property behind wallpaper-style patterns.

19

Background Attachment

Background attachment fixes an image in place or lets it scroll with the page. It creates the classic parallax-style effect.

20

Background Shorthand

The background shorthand packs all background properties into one declaration. It makes stylesheets shorter without losing clarity.

21

CSS Borders

Borders frame elements with style, width and colour on each side. They add structure and visual weight to cards and buttons.

22

Border Width

Border width controls how thick the frame around an element is, per side if needed. Subtle widths read as polish; thick ones as emphasis.

23

Border Color

Border colour tints the frame around elements, independently of the border style. It separates sections without extra markup.

24

Border Sides

CSS lets you style each border side separately — top, right, bottom, left. Asymmetric borders create arrows and interesting shapes.

25

Border Shorthand

The border shorthand sets width, style and colour in one declaration. It is the everyday way borders are written in real code.

26

Rounded Borders

Rounded corners soften rectangular elements with border-radius, from slight rounding to full circles. They are a signature of modern UI.

27

CSS Margins

Margins create space outside an element, separating it from neighbours. They are half of the spacing model every layout uses.

28

Margin Collapse

Adjacent vertical margins collapse into one — the classic CSS surprise. Understanding it explains layouts that seem too tight.

29

CSS Padding

Padding creates space inside an element between its content and border. It is what makes cards and buttons feel comfortable.

30

Padding box-sizing

box-sizing decides whether padding counts inside an element's width. Switching to border-box simplifies sizing calculations hugely.

31

CSS Height / Width

Height and width set an element's dimensions, in pixels, percentages or viewport units. Sizing choices ripple through every layout.

32

Min / Max

min-width, max-width and their height twins keep elements flexible within limits. They are the backbone of responsive design.

33

CSS Box Model

The box model — content, padding, border, margin — explains the space every element occupies. It is the first concept to master in CSS.

34

CSS Outline

Outlines draw a line around elements without affecting layout, used for focus rings. They keep keyboard navigation visible and accessible.

35

Outline Width

Outline width sets the thickness of the focus ring around elements. Strong focus indicators are an accessibility essential.

36

Outline Color

Outline colour lets focus indicators contrast against any background. Choosing visible colours helps keyboard users navigate.

37

Outline Shorthand

The outline shorthand sets width, style and colour in one line. It is how focus states are styled in production stylesheets.

38

Outline Offset

Outline offset pushes the outline away from the element's edge. It separates the focus ring from the border for clarity.

39

CSS Text

Text properties control how written content looks — colour, alignment, decoration. Typography is most of what users read on the web.

40

Text Alignment

Text alignment positions content left, right, centre or justified within its box. It sets the rhythm of headings and paragraphs.

41

Text Decoration

Text decoration adds or removes underlines, overlines and strike-throughs. It is how links get styled and strikethrough prices drawn.

42

Text Decoration Styles

Decoration styles vary the kind of line under text — solid, wavy, dashed. Subtle variations personalise links and highlights.

43

Text Transformation

Text transformation changes case in CSS — uppercase, lowercase, capitalise. It styles text without touching the underlying content.

44

Text Spacing

Text spacing adjusts indentation, letter spacing, word spacing and line height. These details decide whether paragraphs feel cramped or readable.

45

Text Shadow

Text shadow adds depth behind letters with offsets and blur. It is a quick way to lift headings off flat backgrounds.

46

CSS Fonts

Fonts are the personality of a site, and CSS controls family, size and weight. This topic covers the properties every design uses.

47

Font Web Safe

Web-safe fonts are available on practically every device, making them the zero-risk choice. They guarantee consistency without loading files.

48

Font Fallbacks

Font fallback stacks list preferred fonts with backups, so text never breaks. A good stack survives missing fonts gracefully.

49

Font Style

Font style switches between normal and italic text, often with oblique variants. It adds emphasis without changing weight.

50

Font Size

Font size scales text from tiny captions to huge headings, in many units. Accessible sizing starts at 16px and scales from there.

51

Font Google

Google Fonts offers hundreds of free web fonts through one link tag. It is how most modern sites get distinctive typography.

52

Font Pairings

Font pairing combines a heading font with a body font for contrast. Good pairings make layouts look professionally designed.

53

Font Shorthand

The font shorthand sets style, weight, size and family in one declaration. It is compact but has a strict required order.

54

CSS Icons

Icons guide users through interfaces, and CSS integrates icon libraries cleanly. Learn to size, colour and align icons like text.

55

Icons: Bootstrap

Bootstrap Icons provide a free icon set loaded by class name. They integrate instantly with any project using the Bootstrap ecosystem.

56

Icons: Google

Google Material Icons deliver thousands of icons through a single stylesheet. The class-based API makes them effortless to use.

57

CSS Links

Links carry navigation, and styling their states — hover, visited, active — guides users. This topic covers the full link-state toolbox.

58

Link Buttons

Links styled as buttons blur the line between navigation and action. Learn to turn anchors into polished call-to-action elements.

59

CSS Lists

Lists structure content as bullets or numbers, and CSS restyles their markers and layout. Custom list design powers menus and step lists.

60

CSS Tables

Tables present data in rows and columns, and CSS makes them readable and responsive. Borders, padding and zebra stripes transform plain tables.

61

Table Size

Table sizing controls column widths and table dimensions. Fixed layouts keep columns predictable across content lengths.

62

Table Alignment

Table alignment positions content within cells and the table itself. Numeric columns usually want right alignment.

63

Table Styling

Table styling recipes — striped rows, hover effects, dividers — turn data grids into polished reports. These patterns appear in every dashboard.

64

Table Responsive

Responsive tables adapt to narrow screens with horizontal scrolling or stacking. On mobile, a bad table breaks an otherwise fine page.

65

CSS Display

The display property decides an element's fundamental behaviour — block, inline, flex, grid. It is the single most powerful CSS property.

66

Visibility / Hide

visibility hides elements while keeping their space, unlike display:none. The distinction matters for layout and accessibility.

67

CSS Max-width

max-width caps how wide an element can grow, keeping text lines readable. It is the difference between fluid and uncontrolled layouts.

68

CSS Position

Positioning places elements relative to their normal flow — static, relative, absolute, fixed, sticky. It unlocks dropdowns, modals and pinned headers.

69

Fixed/Absolute Position

Fixed and absolute positioning take elements out of the flow entirely. Fixed pins to the viewport; absolute pins to an ancestor.

70

Sticky Position

Sticky positioning glues an element until its container scrolls past. It powers persistent headers and section labels.

71

CSS Position Offsets

Top, right, bottom and left offsets nudge positioned elements from their anchor. They are how exact placement gets fine-tuned.

72

CSS Z-index

z-index stacks overlapping elements in layers, controlling what sits on top. Stacking contexts make this one of CSS's trickiest areas.

73

CSS Overflow

Overflow handles content that spills beyond its box — scroll it, clip it or show it. It is essential for fixed-height containers.

74

Overflow X and Y

Overflow can be controlled per axis, so a table scrolls horizontally while content flows vertically. Fine-grained control fixes awkward scrolling.

75

CSS Float

Float wraps text around images, the original layout tool. Modern layouts prefer flexbox and grid, but float still handles inline media.

76

Clear / Clearfix

Clear and clearfix stop elements from wrapping around floats. They are the classic fixes for collapsed float containers.

77

Float Examples

Float examples show real layouts — image galleries, sidebars, multi-column text. They demonstrate where float still earns its place.

78

CSS Inline-block

Inline-block combines inline flow with block sizing, useful for navigation and card rows. It predates flexbox but still appears in layouts.

79

CSS Align

Aligning elements centres content horizontally and vertically, the eternal CSS quest. This topic covers the standard techniques.

80

Horizontal Align

Horizontal alignment centres block elements with margins or flexbox. Centring a box is the first alignment challenge everyone meets.

81

Vertical Align

Vertical alignment positions inline content relative to its line, and flexbox handles block-level centring. Both approaches matter daily.

82

CSS Combinators

Combinators link selectors by relationship — descendant, child, sibling. They target elements precisely without adding classes.

83

CSS Pseudo-classes

Pseudo-classes style element states — hover, focus, first-child. They enable interaction styling without JavaScript.

84

Interactive

Interactive pseudo-classes react to user actions like hovering and focusing. They are what makes buttons and links feel alive.

85

Structural

Structural pseudo-classes select elements by position, like nth-child and first-of-type. They power zebra stripes and layout patterns.

86

CSS Pseudo-elements

Pseudo-elements style parts of elements that do not exist in markup — first lines, generated content. They add polish without extra HTML.

87

Text

Text pseudo-elements target the first letter or line of a block, creating drop caps and editorial flourishes. They are pure CSS typography.

88

Content

The content property generates text inside pseudo-elements, powering icons, counters and labels. It is CSS generating content that was never in the HTML.

89

CSS Opacity

Opacity makes elements partially transparent, from subtle overlays to ghost buttons. It affects the whole element including children.

90

CSS Navigation Bars

Navigation bars are lists of links styled into horizontal or vertical menus. They are the skeleton of every website's header.

91

Vertical Navbar

Vertical navbars stack links in a sidebar, common in dashboards and documentation. Full-height styling makes them feel native.

92

Horizontal Navbar

Horizontal navbars line links across the top, the standard website header. Sticky positioning keeps them visible while scrolling.

93

CSS Dropdowns

Dropdown menus reveal options on hover or click, using nested lists and positioning. They pack many links into a compact header.

94

Advanced Dropdowns

Advanced dropdowns add images, multi-column panels and nested submenus. They are the mega-menu pattern of e-commerce sites.

95

CSS Image Gallery

Image galleries arrange photos in responsive grids with captions and lightboxes. They are a portfolio staple for every developer.

96

CSS Image Sprites

Image sprites combine many icons into one file, saving HTTP requests. Historically vital, they still appear in legacy codebases.

97

CSS Attribute Selectors

Attribute selectors target elements by their attributes and values, like inputs of a certain type. They style forms and data attributes cleanly.

98

Advanced Attr Selectors

Advanced attribute selectors match substrings and patterns in attribute values. They unlock powerful styling without extra classes.

99

CSS Forms

Forms carry the web's input, and styling them well drives conversions. This topic covers layout, spacing and focus states for every field.

100

Style Inputs

Styling inputs unifies text fields, dropdowns and buttons into one design language. Consistent forms feel trustworthy and professional.

101

Input Focus / Icons

Focus states and icons inside inputs signal interactivity and purpose. Visible focus rings are also an accessibility requirement.

102

Other Form Elements

Textareas, selects and fieldset groups each need their own styling approach. Completing the form toolkit makes any input flow designable.

103

CSS Counters

CSS counters number elements automatically, from headings to ordered lists. They replace manual numbering that breaks when content moves.

104

Nested Counters

Nested counters number sections hierarchically like 1.1, 1.2 — perfect for documents. They manage numbering that would be tedious by hand.

105

CSS Units

CSS units measure everything — px, %, em, rem, vw — each with a purpose. Choosing the right units makes layouts scale correctly.

106

Absolute Units

Absolute units like pixels stay fixed regardless of screen or settings. They are predictable, though less accessible than relative units.

107

Relative Units

Relative units like em and rem scale with font size, building responsive type. Rem-based sizing is the modern accessibility standard.

108

CSS Inheritance

Some CSS properties inherit from parents, which is why setting body font cascades everywhere. Understanding inheritance halves your stylesheet.

109

CSS Specificity

Specificity decides which rule wins when several match the same element. It is the scoreboard behind every CSS conflict.

110

Specificity Hierarchy

The specificity hierarchy ranks inline styles, IDs, classes and tags. Knowing the ranking explains almost every why-is-my-style-not-applying moment.

111

CSS !important

!important overrides normal specificity rules, a sledgehammer best used rarely. Overusing it paints stylesheets into corners.

112

CSS Math Functions

CSS math functions — calc, min, max, clamp — compute values at runtime. clamp() alone powers fluid typography with one line.

113

CSS Optimization

CSS optimisation shrinks files and speeds page loads with minification and unused-style removal. Fast CSS is a page-speed requirement.

114

CSS Accessibility

Accessible CSS keeps text readable, focus visible and motion respectful of user settings. Design that includes everyone also converts better.

115

CSS Website Layout

Website layout composes header, content, sidebar and footer into a page skeleton. This topic covers the classic structures every site builds on.

CSS Advanced

55 of 55 topics published
116

CSS Rounded Corners

Rounded corners on cards, buttons and images soften interfaces across the board. border-radius values map from slight rounding to pills.

117

CSS Border Images

Border images use an image as the border of an element, creating ornate frames. It is a niche technique for distinctive designs.

118

CSS Backgrounds

CSS3 backgrounds add multiple layers, sizing and positioning control to elements. They supersede the old single-background model.

119

Background Size

Background size scales images with cover, contain or exact dimensions. cover fills an area while contain shows the whole image.

120

Background Origin

Background origin anchors the image to the border box, padding box or content box. It fine-tunes where backgrounds start.

121

Background Clip

Background clip crops the background to its box — useful for text filled with images. It powers gradient text effects.

122

CSS Colors

CSS3 colour features include RGBA, HSL and opacity for richer palettes. Modern colour tools replaced the old hex-only world.

123

Color Keywords

Colour keywords name colours directly, including special values like transparent and currentColor. currentColor keeps borders and icons in sync.

124

CSS Gradients

Gradients blend colours smoothly without image files, from buttons to hero sections. They are the modern replacement for background images.

125

Radial Gradients

Radial gradients radiate colour from a centre point, creating glows and spotlights. They add depth that flat colours cannot.

126

Conic Gradients

Conic gradients sweep colour around a centre, producing pie charts and colour wheels. They complete the gradient family in pure CSS.

127

CSS Shadows

Shadows lift elements off the page with offset, blur and spread. Card and button shadows are the depth cues of flat design.

128

Box Shadow

Box shadow draws one or more shadows around an element's box, including inset effects. Layered shadows create realistic elevation.

129

CSS Text Effects

Text effects — shadows, overflow, wrapping — style text beyond colour and size. They handle long content and add visual punch.

130

CSS Custom Fonts

Custom fonts load any typeface through @font-face, freeing designs from system fonts. It is how brands keep typography consistent everywhere.

131

CSS 2D Transforms

2D transforms move, rotate, scale and skew elements without affecting layout. They power hover animations and card flips.

132

Scale

The scale transform resizes elements smoothly, the basis of zoom and grow-on-hover effects. Transforms animate cheaply compared to layout changes.

133

Skew / Matrix

Skew and matrix transforms distort elements for slanted designs. The matrix form generalises every 2D transform into one function.

134

CSS 3D Transforms

3D transforms add perspective, rotation and depth to elements. They create card flips, cubes and parallax scenes in CSS.

135

3D Perspective

Perspective gives 3D transforms their depth by defining the viewer's distance. Without it, 3D rotations look flat.

136

CSS Transitions

Transitions animate property changes smoothly when states switch, like hover colour shifts. They are the foundation of micro-interactions.

137

Transition Timing

Transition timing curves — ease, linear, cubic-bezier — shape how animations accelerate. The right curve makes motion feel natural.

138

CSS Animations

Keyframe animations run multi-step effects continuously or on load. They bring loaders, spinners and hero motion to life.

139

Animation Timing

Animation timing controls duration, delay and iteration of keyframes. It is the schedule behind every animation you write.

140

Animation Properties

Animation properties manage direction, fill mode and play state. Fill mode decides what the element looks like before and after.

141

CSS Tooltips

Tooltips reveal extra information on hover with pure CSS. They are the lightweight pattern behind hints and labels.

142

Tooltip Arrows

Tooltip arrows point the bubble at its target using borders or transforms. Small details like arrows sell the polish.

143

CSS Image Styling

Image styling covers rounded corners, borders, shadows and responsiveness. It is the finishing layer on any visual site.

144

Image Effects

Image effects like filters, grayscale and blur transform photos with CSS. Hover effects on gallery images come from these properties.

145

Hover Overlays

Hover overlays place captions and buttons over images when hovered. They are the standard pattern for portfolio and product cards.

146

CSS Image Modal

CSS image modals open a full-size overlay from a thumbnail using the :target pseudo-class. It builds lightboxes without JavaScript.

147

CSS Image Centering

Centering images horizontally and vertically covers block margins, flexbox and transforms. Every layout eventually needs this solved.

148

CSS Image Filters

Image filters apply blurs, brightness and colour effects like a photo editor. filter is a one-line photo manipulation toolkit.

149

CSS Image Shapes

Image shapes wrap text around circles and polygons using shape-outside. It creates magazine-style layouts in plain CSS.

150

CSS object-fit

object-fit crops or fits replaced content like images into their box. cover and contain solve image distortion permanently.

151

CSS object-position

object-position chooses which part of an image stays visible after cropping. It is how you keep faces centred in avatar crops.

152

CSS Masking

Masking reveals parts of an element through gradients, images or SVG. It is the advanced technique behind creative image cutouts.

153

Masking - Gradients

Gradient masks fade elements into transparency smoothly. They produce the soft edge effects seen on modern hero sections.

154

Masking - SVG

SVG masks use vector shapes to cut precise transparency. They bring complex, scalable masking to elements.

155

CSS Buttons

Buttons are the web's calls to action, and their styling decides clickability. This topic covers size, colour, borders and states.

156

Hover Effects

Hover effects give buttons feedback — colour shifts, shadows, transforms. They are the micro-interactions that make interfaces feel responsive.

157

Button Groups

Button groups join related actions into a single segmented control. They appear in toolbars, filters and pagination.

158

CSS Pagination

Pagination styles the page-number navigation of listings and blogs. Clear active states make browsing long content effortless.

159

Pagination Styles

Pagination style variations — circles, arrows, numbered bars — fit different design languages. Small variations change the whole feel.

160

CSS Multiple Columns

Multiple columns flow text into newspaper-style columns automatically. They format long articles and documentation beautifully.

161

Multiple Column Rules

Column rules draw divider lines between multi-column text. They separate columns visually without extra markup.

162

CSS User Interface

CSS user interface properties style resizing, outlines and box sizing behaviour. They are the platform-level controls of CSS.

163

CSS Variables

CSS variables store reusable values like colours and spacing in one place. Changing a theme becomes a one-line edit.

164

Overriding Variables

Overriding variables scopes theme changes to sections or components. It is how dark mode and white-labeling work.

165

Variables and JavaScript

JavaScript can read and update CSS variables at runtime. This bridge powers live theming and user-driven customisation.

166

Variables in MQ

Redefining variables inside media queries makes whole layouts adapt by changing a few values. It is responsive theming without rewriting rules.

167

CSS @property

The @property rule registers custom properties with types and defaults. Typed variables enable animatable custom properties.

168

CSS Box Sizing

Box sizing switches the width model between content-box and border-box. border-box is the modern default that makes sizing sane.

169

CSS Media Queries

Media queries apply styles based on screen size, orientation and capabilities. They are the engine of responsive web design.

170

MQ Examples

Media query examples show real breakpoints for phones, tablets and desktops. They are the patterns you adapt to your own layouts.

CSS Grid

11 of 11 topics published
177

Grid Intro

CSS Grid is the two-dimensional layout system for rows and columns together. It makes complex page layouts simple and explicit.

178

Grid Container

The grid container defines columns and rows with track templates. Setting up the grid is declaring the layout like a blueprint.

179

Grid Tracks

Grid tracks are the rows and columns you define, with fr units sharing space proportionally. fr-based grids scale beautifully.

180

Grid Gaps

Grid gaps space rows and columns consistently without margin hacks. They keep grids clean even as content changes.

181

Grid Align

Grid alignment places the whole grid or individual items within their areas. It controls both axes with one property each.

182

Grid Items

Grid items span multiple rows and columns using line numbers or named areas. Spanning is what turns a grid into a page layout.

183

Grid Item Named

Named grid areas label regions like header and sidebar for readability. They make layouts self-documenting.

184

Grid Item Align

Aligning individual grid items overrides container defaults per item. It fine-tunes placement inside a cell.

185

Grid Item Order

Grid item order changes visual position without touching the HTML. It separates content order from display order.

186

Grid 12-column Layout

The 12-column grid is the classic layout framework structure, from Bootstrap to design systems. It is the grid pattern behind most websites.

187

CSS @supports

@supports applies styles only when a feature is supported, enabling progressive enhancement. It future-proofs modern CSS.

More CSS Notes

88 topics
201

Add External CSS

Linking a separate .css file so styles are reused across pages.

305

Advanced Attribute Selectors

Matching attribute values by prefix, suffix and substring.

307

Interactive Pseudo-classes

States driven by the user: hover, active, focus and visited.

308

Structural Pseudo-classes

Position in the tree: nth-child, first-of-type and only-child.

310

Pseudo-element Text

Targeting ::first-line and ::first-letter for typographic control.

311

Pseudo-element Content

Generating content with ::before and ::after.

402

RGB Colors

Defining colour by red, green and blue channels.

403

HEX Colors

Six-digit hexadecimal colour notation and its shorthand.

404

HSL Colors

Colour by hue, saturation and lightness for easier theming.

501

Background Color

Filling an element's background with a solid colour.

506

Multiple Backgrounds

Layering several background images on one element.

601

Border Style

The line styles available: solid, dashed, dotted and more.

607

Rounded Corners

How border-radius shapes each corner of a box.

608

Border Images

Replacing a plain border with an image using border-image.

609

Outline Style

Drawing a line outside the border without affecting layout.

701

Margins

The space outside an element that separates it from neighbours.

703

Padding

The space inside an element between content and border.

704

Padding and box-sizing

How box-sizing changes whether padding adds to width.

705

Box Sizing

Choosing between content-box and border-box sizing.

801

Height and Width

Setting an element's content dimensions.

802

Min and Max

Constraining size with min-width, max-width and their height twins.

804

Max-width

Keeping elements within a viewport and the classic max-width trick.

901

Text Color

Setting the colour of text content.

908

Text Effects

Modern effects such as outline, wrap control and overflow.

1001

Font Family

Choosing a typeface and the font stack concept.

1002

Web Safe Fonts

Typefaces reliably available across systems.

1006

Google Fonts

Loading web fonts from an external service.

1009

Custom Fonts

Self-hosting fonts with @font-face.

1101

Styling Links

Colouring and decorating link states.

1103

Styling Lists

Controlling markers, position and spacing of lists.

1104

Table Borders

Drawing borders and collapsing them in tables.

1108

Responsive Tables

Making wide tables usable on small screens.

1201

Display

How display controls layout: block, inline, flex, grid and none.

1202

Visibility and Hide

The difference between visibility:hidden and display:none.

1203

Static and Relative Position

Default flow versus offsetting an element from its normal spot.

1204

Fixed and Absolute Position

Removing an element from flow and anchoring it to the viewport or a parent.

1206

Position Offsets

Using top, right, bottom and left to place positioned elements.

1207

Z-index

Controlling stacking order of overlapping positioned elements.

1208

Overflow

What happens when content exceeds its box.

1301

Float

The legacy layout method that wraps text around elements.

1302

Clear and Clearfix

Stopping float wrap and containing floated children.

1304

Inline-block

Boxes that flow like text but accept width and height.

1305

Center Align

Horizontally centring blocks, flex and grid items.

1401

Font Awesome Icons

Using an icon font library for scalable glyphs.

1402

Bootstrap Icons

Bootstrap's standalone icon set.

1403

Google Icons

Material Symbols and Icons from Google Fonts.

1501

Navbar Intro

The building blocks of a navigation bar.

1504

Dropdowns

Revealing a menu on hover or focus.

1506

Tooltips

Showing contextual text on hover with CSS.

1601

Image Gallery

Laying out a grid of thumbnails.

1602

Image Sprites

Combining images into one file to cut requests.

1603

Image Styling

Borders, radius and shadows on images.

1606

Image Modal

A click-to-enlarge lightbox built with CSS.

1607

Image Centering

Centring images horizontally and vertically.

1608

Image Filters

Grayscale, blur and brightness with the filter property.

1609

Image Shapes

Non-rectangular images with clip-path.

1610

object-fit

How an image fills its box: cover, contain and fill.

1611

object-position

Which part of an image stays in view.

1612

Masking with PNG

Transparency and masks using images.

1613

Masking with Gradients

Fading edges with gradient masks.

1614

Masking with SVG

Complex shapes via SVG masks.

1615

Opacity

Making elements and backgrounds transparent.

1701

Style Forms

Designing form containers and fieldsets.

1703

Input Focus and Icons

Highlighting the active field and adding icons.

1705

Counters

Auto-numbering content with CSS counters.

1804

Inheritance

Which properties children receive from parents.

1805

Specificity

How the browser resolves conflicting rules.

1807

!important

Overriding the cascade and why to use it sparingly.

1808

Math Functions

calc, min, max and clamp for dynamic values.

1903

Website Layout

Composing a full page from the layout tools above.

2001

Translate and Rotate

Moving and spinning elements in 2D.

2003

Skew and Matrix

Distorting elements and the underlying matrix.

2004

3D Transforms

Depth, perspective and rotation on three axes.

2005

Transitions

Animating a change between two states.

2007

Animations

Multi-step motion with @keyframes.

2101

Styling Buttons

Building accessible, good-looking buttons.

2104

Pagination

Page navigation controls.

2201

Multiple Columns

Flowing text into newspaper-style columns.

2203

User Interface

Resizing, appearance and caret styling.

2301

The var() Function

Reading custom properties for reusable values.

2304

Variables in Media Queries

Responsive tokens with custom properties.

2305

@property

Typed custom properties with defaults and animation.

2306

@supports

Feature-detection blocks for progressive enhancement.

2401

Media Queries

Applying styles based on viewport and device features.

2503

Justify Content

Distributing items along the main axis.

2504

Align Items

Positioning items on the cross axis.

2607

Named Grid Items

Areas and line names for readable layouts.

2610

12-column Layout

A responsive column system with grid.

Ready to go from notes to a real career?

Join Coding Now Tech Institute's CSS course — live mentorship, hands-on projects, and 100% placement support in Delhi NCR.

Enroll Now — Free Demo Available

CSS Notes – FAQs

What students search before reading CSS notes.

Yes — all 283 CSS topics on Coding Now Tech Institute are completely free with no signup or paywall. Read them in the browser on mobile or desktop.
This hub covers 283 structured CSS topics — from absolute basics to advanced, interview-ready concepts — each with short explanations and working code examples.
The notes are written to be self-study friendly, but for job-ready skills, projects and placement support, Coding Now Tech Institute's mentor-led CSS course in Delhi (online + classroom) is the fastest path.
Yes. Each topic is concise and example-driven — ideal for last-minute revision before college exams, campus placements and CSS job interviews in India.
Working AI/ML engineers and full-stack developers from Coding Now Tech Institute, Pitampura Delhi, aligned with our 2026 course curriculum.
Call NowEnroll Now