Style common group of divs in one css statement.
Posted
by Vafello
on Stack Overflow
See other posts from Stack Overflow
or by Vafello
Published on 2010-03-20T17:52:53Z
Indexed on
2010/03/20
18:31 UTC
Read the original article
Hit count: 280
css
|JavaScript
I have a few divs created dynamically in Javascript.I was wondering if it is possible to style them all at once.
#somediv {
background-color: #F2F5FC;
border-style:solid;
border-bottom:thin dotted #33ccff;
}
#somediv2 {
background-color: #F2F5FC;
border-style:solid;
border-bottom:thin dotted #33ccff;
}
...and so on (this can be even 50 divs)
I would like to change this to something like:
#somediv* {
background-color: #F2F5FC;
border-style:solid;
border-bottom:thin dotted #33ccff;
}
© Stack Overflow or respective owner