101.school
CoursesAbout
Search...⌘K
Generate a course with AI...

    Advance CSS

    Receive aemail containing the next unit.
    • CSS Grid Layout
      • 1.1Introduction to grid-based systems
      • 1.2Working with rows and columns
      • 1.3Creating complex, responsive designs
    • CSS Flexbox
      • 2.1Flexbox techniques: alignment and layout
      • 2.2Flexbox controls for UI components
    • Responsive Web Design
      • 3.1Implementing media queries
      • 3.2Employing fluid design principles
    • CSS Preprocessors
      • 4.1Introduction to CSS preprocessors: Sass, Less, and Stylus
      • 4.2Streamlining styling with variables, mixins, and functions
    • CSS Custom Properties (Variables)
      • 5.1Incorporating custom properties in design
      • 5.2Crafting dynamic and themeable styles
    • CSS-in-JS Libraries
      • 6.1Survey of CSS-in-JS solutions
      • 6.2Scoped and encapsulated styles for components
    • Animations and Transitions
      • 7.1Keyframes animations with CSS
      • 7.2Implementing engaging transitions
    • Advanced Selectors and Pseudo-classes
      • 8.1Understanding pseudo-classes
      • 8.2Styling with advanced selectors
    • CSS Architecture and Methodologies
      • 9.1Introduction to BEM and SMACSS
      • 9.2Structuring scalable, organized CSS
    • CSS Transforms and 3D Effects
      • 10.1Introducing CSS transforms
      • 10.2Creating engaging visual effects
    • CSS Filters and Blend Modes
      • 11.1Understanding and applying CSS filters
      • 11.2Creating unique compositions using blend modes
    • Web Fonts and Icon Fonts
      • 12.1Integrating custom web fonts and icon fonts
      • 12.2Enhancing typography and visual elements
    • Accessibility and Inclusive Design
      • 13.1Understanding ARIA roles and attributes
      • 13.2Designing for diverse user needs

    CSS Grid Layout

    Understanding Grid Gap and Grid Line in CSS Grid Layout

    used in graphic design to guide objects

    Used in graphic design to guide objects.

    In this unit, we will delve into the concepts of Grid Gap and Grid Line in CSS Grid Layout. These are fundamental aspects that contribute to the overall structure and design of a grid layout.

    Grid Gap

    The grid-gap property is a shorthand for grid-row-gap and grid-column-gap, specifying the size of the gap between the rows and columns in a grid.

    .container { display: grid; grid-gap: 20px; }

    In the above example, the grid-gap property sets a gap of 20px between all rows and columns in the grid.

    Grid Row Gap and Grid Column Gap

    The grid-row-gap property sets the size of the gap between the rows in a grid, while the grid-column-gap property sets the size of the gap between the columns.

    .container { display: grid; grid-row-gap: 20px; grid-column-gap: 10px; }

    In this example, the grid-row-gap property sets a gap of 20px between the rows, and the grid-column-gap property sets a gap of 10px between the columns.

    Grid Line

    Grid lines are the dividing lines that make up the structure of the grid. They can be horizontal or vertical ("column grid lines") and reside on either side of a row or column. You can refer to these lines by number when positioning grid items.

    .item { grid-column-start: 2; grid-column-end: 4; }

    In the above example, the grid item will start from the second vertical grid line and span until the fourth vertical grid line.

    Grid lines can also be named, which can make your grid code easier to understand.

    .container { display: grid; grid-template-columns: [start] 1fr [middle] 2fr [end]; } .item { grid-column: start / end; }

    In this example, the grid lines are named 'start', 'middle', and 'end'. The grid item will start from the 'start' line and span until the 'end' line.

    Understanding and effectively using grid-gap and grid lines are crucial for mastering CSS Grid Layout. They provide the flexibility and control needed to create complex and responsive designs.

    Test me
    Practical exercise
    Further reading

    Buenos dias, any questions for me?

    Sign in to chat
    Next up: Flexbox techniques: alignment and layout