Parajsa.com


Parajsa Shqiptare Forum

Cfare ju duhet te dini?

 

Kthehuni Mbrapa   Parajsa Shqiptare Forum | Albanian Paradise | Computers & Internet

How can I make a class work recursively on all the child elements in CSS?

Pergjigju
 
LinkBack Alternativa Teme Vleresoni Temen
  #1  
Te vjeter 31-07-2007, 16:36
Minifotoja e anetarit TriKri
I/e Sapoardhur
 
Reg: 31-07-07
Postime: 1
Kryesore How can I make a class work recursively on all the child elements in CSS?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Live!Google!Sphinn!Stumbleupon!Yahoo!Spurl this Post!Reddit! Wong this Post!
Pergjigjuni me Citim
  #2  
Te vjeter 31-07-2007, 16:37
Minifotoja e anetarit jaxicle
I/e Sapoardhur
 
Reg: 31-07-07
Postime: 2
Kryesore

.block .child {
display: block;
}
__________________
Yahoo! Answers 4ever
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Live!Google!Sphinn!Stumbleupon!Yahoo!Spurl this Post!Reddit! Wong this Post!
Pergjigjuni me Citim
  #3  
Te vjeter 31-07-2007, 16:37
Minifotoja e anetarit jaxicle
I/e Sapoardhur
 
Reg: 31-07-07
Postime: 2
Kryesore

.block .child {
display: block;
}
__________________
Yahoo! Answers 4ever
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Live!Google!Sphinn!Stumbleupon!Yahoo!Spurl this Post!Reddit! Wong this Post!
Pergjigjuni me Citim
Pergjigju

Bookmarks

Tags
child, class, css, elements, make, recursively, work

Alternativa Teme
Vleresojeni kete Teme
Vleresojeni kete Teme:

Rregullore Postimi
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is aktivizuar
Buzeqeshjet jane te aktivizuar
Kodi [IMG] eshte i aktivizuar
Kodi HTML eshte i dizaktivizuar
Trackbacks are aktivizuar
Pingbacks are aktivizuar
Refbacks are aktivizuar
Kapercim Forumesh

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


Te gjitha oret jane ne GMT +1. Ora tani eshte 03:02.




Parajsa Shqiptare