diff --git a/css-cookbook/breadcrumb-navigation--download.html b/css-cookbook/breadcrumb-navigation--download.html index d0143c96..daf92b60 100644 --- a/css-cookbook/breadcrumb-navigation--download.html +++ b/css-cookbook/breadcrumb-navigation--download.html @@ -28,13 +28,9 @@ padding: .5em 1em; } - .breadcrumb li::before { + .breadcrumb li:not(:first-child)::before { content: "→"; } - - .breadcrumb li:first-child::before { - content: ""; - } @@ -52,4 +48,4 @@ - \ No newline at end of file + diff --git a/css-cookbook/breadcrumb-navigation.html b/css-cookbook/breadcrumb-navigation.html index 145b3f89..6073c1ac 100644 --- a/css-cookbook/breadcrumb-navigation.html +++ b/css-cookbook/breadcrumb-navigation.html @@ -24,13 +24,9 @@ display: flex; } - .breadcrumb li::before { + .breadcrumb li:not(:first-child)::before { content: "→"; } - - .breadcrumb li:first-child::before { - content: ""; - } @@ -50,14 +46,10 @@ .breadcrumb ul { display: flex; } - -.breadcrumb li::before { + +.breadcrumb li:not(:first-child)::before { content: "→"; } - -.breadcrumb li:first-child::before { - content: ""; -}