Take the 2-minute tour ×

For example, I may want to make create a div.Style1 block where all <img /> elements within this type of div are given certain properties.

Is this possible? If so, what is the proper syntax?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

The syntax is

 div.Style1 img { border: 3px red solid }

see also CSS basics at W3schools

share|improve this answer
Thank you for your help! –  Giffyguy Nov 7 '10 at 19:00

Your Answer


