Sunday, June 1, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Chris’ Corner: Subgrid – CodePen Blog

September 18, 2023
in Cloud & Programming
Reading Time: 2 mins read
0 0
A A
0
Share on FacebookShare on Twitter



Chrome 117 was recently released as a stable version. If you’re interested in Chrome releases, there is a website where you can track the plan for future releases. Normally, I don’t write specifically about Chrome updates, as Rachel Andrew does a great job covering web platform updates each month on Web.dev. However, this release is particularly exciting because it includes the shipment of subgrid across all three major browsers.

Subgrid was previously shipped on Firefox on December 2, 2019, and on Safari on September 11, 2022. Chrome was the last to ship subgrid on September 12, 2023. To check for browser support and code accordingly, you can use the Caniuse website.

Subgrid is a keyword that works with grid-template-columns and grid-template-rows, allowing you to incorporate grid lines from the parent grid into the child element. Here’s an example:

“`html
.parent {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.child {
grid-column: 2 / 4;
display: grid;
grid-template-columns: subgrid;
}
“`

To check if your browser supports subgrid, you can use the CSS feature @supports. Here’s an example:

“`css
output::after {
content: “❌ Your browser does not support subgrid”;
}

@supports(grid-template-rows: subgrid) {
output::after {
content: “✅ Your browser supports subgrid”;
}
}
“`

One common use case for subgrid is aligning elements within a grid, such as card elements. This ensures that elements with cards align according to shared grid lines. Another use case is aligning web forms with variable length labels. Eric Meyer considered subgrid “essential” seven years ago, and it has proven to be a valuable addition to CSS grid.

If you’re interested in learning more about subgrid, Rachel Andrew has a dedicated talk on CSS subgrid that delves into the details. Kevin Powell also has a series of videos called “Subgrid Awareness Month” that cover various aspects of subgrid, including consistent layouts. CSS grid, in general, provides powerful layout control from the parent element, and subgrid enhances these capabilities even further.



Source link

Tags: BlogChrisCodePenCornerSubgrid
Previous Post

Learn the fundamentals of designing AMRs at RoboBusiness

Next Post

A catalogue of genetic mutations to help pinpoint the cause of diseases

Related Posts

Top 20 Javascript Libraries You Should Know in 2024
Cloud & Programming

Top 20 Javascript Libraries You Should Know in 2024

June 10, 2024
Simplify risk and compliance assessments with the new common control library in AWS Audit Manager
Cloud & Programming

Simplify risk and compliance assessments with the new common control library in AWS Audit Manager

June 6, 2024
Simplify Regular Expressions with RegExpBuilderJS
Cloud & Programming

Simplify Regular Expressions with RegExpBuilderJS

June 6, 2024
How to learn data visualization to accelerate your career
Cloud & Programming

How to learn data visualization to accelerate your career

June 6, 2024
BitTitan Announces Seasoned Tech Leader Aaron Wadsworth as General Manager
Cloud & Programming

BitTitan Announces Seasoned Tech Leader Aaron Wadsworth as General Manager

June 6, 2024
Copilot Studio turns to AI-powered workflows
Cloud & Programming

Copilot Studio turns to AI-powered workflows

June 6, 2024
Next Post
A catalogue of genetic mutations to help pinpoint the cause of diseases

A catalogue of genetic mutations to help pinpoint the cause of diseases

OpenAI Red Teaming Network

OpenAI Red Teaming Network

The Importance of Keywords in SEO

The Importance of Keywords in SEO

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
Accenture creates a regulatory document authoring solution using AWS generative AI services

Accenture creates a regulatory document authoring solution using AWS generative AI services

February 6, 2024
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
Managing PDFs in Node.js with pdf-lib

Managing PDFs in Node.js with pdf-lib

November 16, 2023
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
Turkish Airlines Marketing Strategy: Beyond “Globally Yours”

Turkish Airlines Marketing Strategy: Beyond “Globally Yours”

May 29, 2024
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In