--- id: 62b30924c5e4ef0daba23b5e title: Step 47 challengeType: 0 dashedName: step-47 --- # --description-- Il bordo dell'ultimo elemento `fieldset` sembra un po' fuori luogo. Puoi selezionare l'ultimo elemento di un certo tipo usando la pseudo-classe CSS `last-of-type`, in questo modo: ```css p:last-of-type { } ``` Questo selezionerà l'ultimo elemento `p`. Crea un nuovo selettore che seleziona l'ultimo elemento `fieldset` e imposta la sua proprietà `border-bottom` su `none`. # --hints-- Puoi usare la pseudoclasse `:last-of-type` per selezionare solo l'ultimo elemento di un certo tipo. ```js assert.exists(new __helpers.CSSHelp(document).getStyle('fieldset:last-of-type')); ``` L'elemento `fieldset:last-of-type` dovrebbe avere un `border-bottom` con il valore `none`. ```js const borderBottom = new __helpers.CSSHelp(document).getStyle('fieldset:last-of-type')?.borderBottom; assert(borderBottom === 'none' || borderBottom === 'medium none'); ``` # --seed-- ## --seed-contents-- ```html Registration Form

Registration Form

Please fill out this form with the required information

``` ```css body { width: 100%; height: 100vh; margin: 0; background-color: #1b1b32; color: #f5f6f7; font-family: Tahoma; font-size: 16px; } h1, p { margin: 1em auto; text-align: center; } form { width: 60vw; max-width: 500px; min-width: 300px; margin: 0 auto; } fieldset { border: none; padding: 2rem 0; border-bottom: 3px solid rgb(59, 59, 79); } --fcc-editable-region-- --fcc-editable-region-- label { display: block; margin: 0.5rem 0; } ```