Advanced Positioning in CSS Grid @CSSWeekly
Advanced Positioning in CSS Grid  @CSSWeekly
Uploaded July 2023 | Updated September 2026, 2 hours ago
A practical, in-depth guide to positioning elements on CSS Grid exactly as you want. You'll find out how grid-row and grid-column work in detail by recreating an interesting, creative layout from scratch.

πŸ”— Links
Demo: codepen.io/ZoranJambor/pen/zYMKady
In-depth guide to CSS Logical Properties: youtu.be/cV9JhEV4Ll0
Chrome DevTools Tips: youtu.be/W7GQglXn-jQ

πŸ“–Β Timestamps
00:00 Intro & Setup
00:45 Setting up CSS Grid with 12 Columns & Rows
03:19 How to work with Grid Inspector in Chrome DevTools
04:38 How grid-column-start and grid-column-end work
05:32 How grid-column β€œspan” keyword works
06:19 How grid-column shorthand property works
07:10 How grid-row shorthand property works
08:01 How to stretch an element to full size of the grid area
08:46 How to use object-fit property to fix distorted images
09:34 How to position image within object-fit boundaries using object-position
10:20 How to position content within the grid area using align-self and justify-self
12:53 Position the headline element on the grid
15:12 Position the text element on the grid
15:59 How grid-gap property works
16:57 Position the social media icons element to the edge of an image
18:25 How to remove extra spacing from the bottom of images
18:55 How to change the grid layout on smaller screens
22:18 Conclusion

Subscribe to CSS Weekly Newsletter:
πŸ’Œ css-weekly.com

Course Mastering Prettier & Stylelint
πŸ”₯ Learn everything about best linting tools while supporting CSS Weekly: masteringlinting.com
🏷️ Use coupon code YOUTUBE15 to get an additional 15% off on the already discounted, pre-launch price.

Keep up-to-date with CSS Weekly:
πŸ‘‰ Twitter: twitter.com/CSSWeekly
πŸ‘‰ Instagram: instagram.com/cssweekly
πŸ‘‰ Facebook: facebook.com/CSSWeekly

Keep up to date with what I'm up to:
πŸ”— Blog: zoranjambor.com
πŸ‘‰ Twitter: twitter.com/zoranjambor
πŸ‘‰ LinkedIn: linkedin.com/in/zoranjambor

- Zoran Jambor
#css #cssgrid
Advanced Positioning in CSS GridIn-Depth Guide to CSS Parent Selector :has()Frontend News #18: Self-Destructing CSS, Throttle Specific Requests In Chrome DevToolsIntroducing Baseline Status for VideoFrontend News #19: CSS overscroll-behavior, scrollbar-gutter, text-grow Properties, & MoreFrontend News #14: paint-order, border-image, Properly Sizing ImagesEnforce Underlined Links in FirefoxUse Firefox DevTools when working with CSS clip-path #devtools #cssHow To Debug Chrome for Android With Android StudioIs This CSS or TypeScript?How Position Absolute Works in CSS GridVisBug - Visual Prototyping in Browser
CSS Weekly |

Advanced Positioning in CSS Grid

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER