Desktop Safari Seems To Add Extra Padding To CSS Flexbox Item Inside List Item
![](https://bennadel-cdn.com/resources/uploads/2019/safari-flexbox-in-li-issue-extra-padding.png)
Ben Nadel demonstrates a wonky behavior in Desktop Safari in which the first CSS Flexbox item has extra padding if - and only if - it is rendered inside of a List Item. This works properly in Chrome, Firefox, and even IE 11 (well, almost).
![](https://webkit.org/wp-content/uploads/Safari_17.0_features_light-1024x576.jpeg)
WebKit Features in Safari 17.0
![](https://academy.pagefly.io/wp-content/uploads/2020/02/Chapter04_01.jpg)
Chapter 4: Learn how to adjust Layout - PageFly Academy
![](https://media.geeksforgeeks.org/wp-content/uploads/20200719214439/202007193.png)
Introduction to CSS Flexbox - GeeksforGeeks
![](https://www.developerdrive.com/wp-content/uploads/2019/01/image-gallery-no-css.jpg)
How to Create a Responsive Image Gallery with Flexbox - Developer Drive
justify-content CSS-Tricks - CSS-Tricks
![](https://www.munnelly.com/webdesign/exercises/assets/img/flex-four-cols/bg-padding-child-html.png)
CSS Flexbox: Four Columns, Web Design & Development Tutorials
![](https://i.stack.imgur.com/ynCRx.png)
html - Safari nested flex issue - Stack Overflow
![](https://blog.hubspot.com/hs-fs/hubfs/Heres%20the%20Difference%20Between%20Flexbox,%20CSS%20Grid,%20%26%20Bootstrap-1.gif?width=600&name=Heres%20the%20Difference%20Between%20Flexbox,%20CSS%20Grid,%20%26%20Bootstrap-1.gif)
Here's the Difference Between Flexbox, CSS Grid & Bootstrap
![](https://www.munnelly.com/webdesign/exercises/assets/img/flex-two-cols/bg-colours-child-padding-correct.png)
CSS Flexbox: Two Columns, Web Design & Development Tutorials