From 7d0c6a062ca1929c71778e044b2d815a2e51fae0 Mon Sep 17 00:00:00 2001 From: Owen M Date: Sat, 26 Jun 2021 23:10:03 -0400 Subject: [PATCH] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ff615a..f56ae45 100644 --- a/README.md +++ b/README.md @@ -522,12 +522,15 @@ The distance (in pixels) the mouse must be from an empty sortable while dragging Demo: https://jsbin.com/becavoj/edit?js,output An alternative to this option would be to set a padding on your list when it is empty. + For example: -`ul:empty { +```css +ul:empty { padding-bottom: 20px; -}` +} +``` -Warning: For :empty to work, it must have no node inside (even text one). +Warning: For `:empty` to work, it must have no node inside (even text one). Demo: https://jsbin.com/yunakeg/edit?html,css,js,output -- GitLab