css-diner icon indicating copy to clipboard operation
css-diner copied to clipboard

Level 29 - I'm stuck

Open therachelbee opened this issue 8 years ago • 6 comments

Can anyone please provide suggestions for how to solve level 29? I've tried every combination I can think of.

therachelbee avatar Aug 27 '17 19:08 therachelbee

@therachelbee ... think about lesson 28: Select all elements that have a specific attribute you likely did plate[for] as the answer, right?

well what if we want to get more specific? what if we don't want to select all the plates with a for attribute but instead we want to select only a handful of plates? for example, here (lesson 29) we only want to select Vitaly's plate. well CSS allows us to do that by specifying which attribute value we want.

so let's say our html is:

<div name="ben"></div>
<div name="rachel"></div>
<div name="flukeout"></div>

and let's say I only want my plate. then i would select it in css by typing div[name="ben"]

now, what would we type if we wanted your plate (ie rachel's plate)? find that answer and you'll be able to solve problem #29.

(note that attributes can be anything... my example uses name but problem 29 uses for)

benjaminhoffman avatar Aug 28 '17 18:08 benjaminhoffman

Thanks for helping out @benjaminhoffman! Did that help you out @therachelbee?

flukeout avatar Nov 02 '17 12:11 flukeout

I was stuck with this but it wasn't syntax, it was me being silly - I needed to watch out for uppercase / lowercase.

drk-mtr avatar Jun 16 '18 09:06 drk-mtr

this issue can be closed now.

benjaminhoffman avatar Aug 18 '18 18:08 benjaminhoffman

hi i stuck with this everytime i type [for="Vitaly"] , [for='Vitaly'] , [for=Vitaly] or bento[for="Vitaly'] is not run what should i do

pedram-enayati-kashani avatar Dec 02 '21 11:12 pedram-enayati-kashani

i solved it. the vitaly have big v

pedram-enayati-kashani avatar Dec 02 '21 12:12 pedram-enayati-kashani