Jim Ryan wrote: >How flexible are wildcards in CSS? > >
CSS is not a programming language, so it doesn't have variables in it. You define set classes and ids that appear in your source somewhere. >suppose if I have a series of dynamically created rightnav list items styled >like so: > >.dynamic_rightnav-1 li{border:1px dotted red;} >.dynamic_rightnav-2 li{border:1px dotted red;} >...and so forth > >can I use the wildcard >.dynamic_rightnav-* li{border:1px dotted red;} > >or is there another way to do this to accomodate elements being created on >the fly? > > Wrap all the elements in an appropriate semantic container or, barring that, a div with an id set on it. Like this: <ul id="dynamic-nav"> [dynamically populated list items from a database go here] </ul> Then you can style the dynamically created list items using this selector: #dynamic-nav li { [list item styles go here] } It seemed like from your example that you don't actually want to make each list item look different, so this should work fine for you. Zoe -- Zoe M. Gillenwater Design Services Manager UNC Highway Safety Research Center http://www.hsrc.unc.edu ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/