This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2004 > wildcard characters in css





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author wildcard characters in css
geotso

2004-09-19, 12:15 pm

Hi.

Is there away to use wildcard characters in css?
For example, I have a style like this:

#layer1, #layer2, #layer3, #layer4, #layer5, #layer6, layer7 {
here are the attributes;
}

I'm wandering, if css recognizes the wildcard characters, so I can use
something like this (please don't laugh):

#layer? {
here are the attributes;
}

Thanks (for don't laughing) :)

--
Merlin dying to the Lady of the Lake:
"We lived our lives with passion and devotion"
--
Please, remove the TRAP to contact me
--


Gary White

2004-09-19, 7:15 pm

"geotso" <geotsoTRAP@hotmail.com> wrote in message
news:cik28f$cg3$1@forums.macromedia.com...
>
> Is there away to use wildcard characters in css?


No.


> For example, I have a style like this:
>
> #layer1, #layer2, #layer3, #layer4, #layer5, #layer6, layer7 {
> here are the attributes;
> }



Layers are just <div> tags. Do you have any *other* <div> tags on the
page that are not layers? If not, you could do something like:

div {
.... addributes
}

If you do, then you could use a custom class:

..layerstyle{
.... addributes
}

Then change your layers to:

<div id="layer1" class="layerstyle" ...

Gary


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews