CoursesAboutContactsPricing
Sign In
Privacy PolicyTerms of useSales and Refunds

© 2025 CodEssay Platform. All rights reserved.

    CSS Part 3: Box Model & Layout Basics

    Level: beginner
    Subject: css
    Access: Free

    Learn the CSS box model, layout basics, positioning schemes, and float property to control element layout and spacing.

    Chapters

    Introduction to the CSS Box Model

    Understand the CSS box model and how elements are rendered as boxes. This chapter introduces the concept of the box model as the foundation of CSS layout.

    Topics: box model

    Content Area

    Learn about the content area and how content size affects layout. This chapter explains the core content area inside the box model.

    Topics: content area

    Padding

    Explore padding properties and their impact on element size. Understand how padding creates space inside the border around content.

    Topics: padding

    Border

    Understand border properties and how borders affect box dimensions. Learn how borders visually separate content and padding from outside elements.

    Topics: border

    Margin

    Learn about margin properties, collapsing margins, and spacing between elements. Understand how margins create space outside the border.

    Topics: margin

    Box Sizing

    Understand content-box vs border-box and how box-sizing affects element dimensions. Learn to control box size calculation for layout precision.

    Topics: box sizing

    Display Property

    Explore block, inline, and inline-block display types and their use cases. Understand how display affects element layout and flow.

    Topics: display property

    Static Positioning

    Learn about static positioning, the default positioning scheme. Understand how elements are positioned naturally in the document flow.

    Topics: static positioning

    Relative Positioning

    Understand relative positioning and how it moves elements relative to their normal position without affecting other elements.

    Topics: relative positioning

    Absolute Positioning

    Explore absolute positioning and how elements are positioned relative to the nearest positioned ancestor or the viewport.

    Topics: absolute positioning

    Fixed Positioning

    Learn about fixed positioning and how elements stay fixed relative to the viewport even when scrolling.

    Topics: fixed positioning

    Sticky Positioning

    Understand sticky positioning and how elements switch between relative and fixed based on scroll position.

    Topics: sticky positioning

    Impact of Positioning on Document Flow

    Explore how different positioning schemes affect the flow of elements in the document and their interaction.

    Topics: positioning flow

    Using Top, Right, Bottom, Left Properties

    Learn how to use offset properties to move positioned elements precisely within their containing block.

    Topics: offset properties

    Stacking Context and Z-Index

    Understand stacking context and how z-index controls layering and visibility of overlapping elements.

    Topics: stacking context, z-index

    Common Positioning Pitfalls

    Learn about common issues and pitfalls when using CSS positioning and how to avoid them.

    Topics: positioning pitfalls

    Float Property

    Explore how the float property works and how to use it for layout, including clearing floats.

    Topics: float property