1 reply [Last post]
CSSelgreco1965
CSSelgreco1965's picture
Offline
Enthusiast
Greece
Last seen: 11 years 15 weeks ago
Greece
Timezone: GMT+3
Joined: 2004-06-13
Posts: 51
Points: 28

Hi
I use a div tag operation to do hide/show, and for the operation to work properly, the divs have to be sequentially numbered.
What I would like to know, is, is there a way to have a wild card type tag that reads the first part of the class tag, so they can all be styled the same?

So, instead of .class_one, .class_two, .class_three, etc
it could read, .class_(some way to only see these tag labels)

Just a thought

Thanks in advance

The web becomes a tangled mess when Microsoft gets involved!

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 5 years 3 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

you can give multiple classes

you can give multiple classes to elements.

ie
<div class="class_one slider"></div><div class="class_two slider"></div>
etc...
and if you want all of them to have the same style, just called
.slider { ... }

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph