Best of Kevin PowellDecember 2024

  1. 1
    Video
    Avatar of kevinpowellKevin Powell·1y

    No more extra scrollbars when using overflow-x

    Learn how to prevent unwanted horizontal scrolling by using the CSS 'clip' property instead of 'overflow: hidden'. This solution allows you to manage overflow in one direction while maintaining visibility in the other, solving common issues with double scroll bars. Additionally, get tips on removing elements from the DOM for better user navigation.

  2. 2
    Video
    Avatar of kevinpowellKevin Powell·1y

    A Simple Fix for Your CSS Overflow Problems

    Learn how to effectively manage CSS overflow issues using the overflow-clip property. This method prevents unwanted horizontal scrolling without causing additional problems associated with overflow hidden. Overflow clip allows for more precise control over content visibility, especially in scenarios where content moves horizontally.

  3. 3
    Video
    Avatar of kevinpowellKevin Powell·1y

    This position absolute mistake is ruining modals

    When positioning a close button in a modal, using 'position: absolute' can cause alignment issues. Instead, leveraging 'float: right' provides a more flexible solution that adapts well to different screen sizes and text lengths. Be cautious though, floats won't work if the parent element is a direct flex or grid item. Consider using logical properties for better adaptability in modern web development.