| Cfare ju duhet te dini? |
| |||||||
|
#1
| ||||
| ||||
| Hello! I would like to create a class .block in css which makes all the child elements of the element in question act like block elements. So that every child element ends up at a new row. I allready know the code to make one element act like a block element, "display: block;" But setting a div for example to the class .block will only cause the div itself to act like a block element (which it allready does btw), not the child elements. Is there a way to make the child elements adopt the properties of the class, or make the class act recursively in the ocject tree until a new class is specified?
__________________ Yahoo! Answers 4ever |
|
#2
| ||||
| ||||
| .block .child { display: block; }
__________________ Yahoo! Answers 4ever |
|
#3
| ||||
| ||||
| .block .child { display: block; }
__________________ Yahoo! Answers 4ever |
![]() |
| Bookmarks |
| Tags |
| child, class, css, elements, make, recursively, work |
| Alternativa Teme | |
| Vleresojeni kete Teme | |
|
|
Tema te ngjashme | ||||
| Tema | Filluesi i temes | Forumi | Pergjigje | Postimi i Fundit |
| do hair wavers work or do they make your hair look crimped? | sweetdisasterxx | Beauty & Style | 0 | 05-08-2007 08:27 |
| Does leg magic make ur A** smaller or bigger, Does leg magic really work? | Jenny | Beauty & Style | 0 | 31-07-2007 16:34 |
| Does a daycare ever allow you to work there, if your child goes there? | parentofthebean | Pregnancy & Parenting | 3 | 30-07-2007 23:17 |
| How to Make a Long Distance Relationship Work | Administratori | Love | 0 | 23-02-2007 10:51 |
| Latin dictionary! | Administratori | Life & Philosophy | 0 | 27-02-2005 04:20 |