Click to See Complete Forum and Search --> : changing class values


anarchist
08-19-2003, 05:47 AM
I have a number of elements on a page that need to resize with the page
each is a div, and each has the same class
what I need to do is specify the size of the class so that all the elements of the same class resize evenly
how would I do this?

AdamGundry
08-19-2003, 06:36 AM
I think you need to use document.classes (http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/document.html#1222722).

Adam

anarchist
08-19-2003, 07:08 AM
thanks adam, thats exactly what I need only problem is I need the ie equivalent, this is the first time I've seen it actually easier to do something in netscape, maybe I should switch over....

anarchist
08-19-2003, 07:18 AM
finally found it

document.styleSheets['mystyles'].rules[4].style

need to name the stylesheet or know its ordeer and then each rule on the styleshet, not exactly the easiest way to do it