Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Li:Last-child a border-radius" Formatting not Accepted

Featured Replies

Hello everyone,

At 2:44:10 of Dave Gray's excellent CSS tutorial for beginners, the intention is to make a hover effect have the same rounded corners as its container, so that they visually match.  My code seems identical to his, but I cannot attain the same effect. Here is my page (JSFiddle). The li:last-child a{border-radius: 0 0 2rem 2rem;} doesn't work yet does not seem erroneous. It is intended to make the last li a:hover assume the same shape as the rounded bottom corners of the nav element, in which the list anchors are nested.

Can anyone point out to me where my code is not identical to his? I apologize; I really cannot see it.

Kindly,

Architect

 

P.S.
The forum doesn't allow me to form a link to the YouTube video; I'll try to copy/pate it here directly rather than hyperlink a relevant piece of text in my message above: 

P.P.S.
Forum doesn't accept my link to JSFiddle either, so I'll try to copy/paste the link here rather than hyperlink the relevant text above: https://jsfiddle.net/Architect0/28psknzc/7/

 

Edited by Architect

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.