2 replies [Last post]
artemida
artemida's picture
Offline
newbie
Athens Greece
Last seen: 15 years 35 weeks ago
Athens Greece
Timezone: GMT+3
Joined: 2007-07-21
Posts: 3
Points: 0

After reading Eric Meyer's "Css the Definitive Guide" this part wasn't clear:
How is it possible to form the declaration "attach a certain attribute to (example) all h1 tags inside a div with a particular id". Can you do that or do you have to include the h1 tags in a different id or class?

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 9 years 4 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

if I understand the question

if I understand the question correctly you're speaking of descendant selectors
#particular h1 {properties: values;}will target all h1s inside an element with the id of particular.

artemida
artemida's picture
Offline
newbie
Athens Greece
Last seen: 15 years 35 weeks ago
Athens Greece
Timezone: GMT+3
Joined: 2007-07-21
Posts: 3
Points: 0

Thank you, this has been

Thank you, this has been very helpfull Smile