I did the following which seems to fix the problem, note the last two
set_style calls take a string rather than a hash:
page[k].set_style({:'font-size' = font_sz, :color = col,
:position = 'absolute', :left = (40
+ (horz)), :top = ((tidx * 100) + 70)
I tried this which doesn't seem to do anything either:
page[k].set_style :z_index = 20
I believe that the following syntax is valid:
page[k].set_style :'z-index' = 20
I tried this:
C:\Users\Laurenceirb
irb(main):001:0
irb(main):002:0*
irb(main):003:0* x = :'z-index'
= :z-index
On May 31, 2011, at 6:58 PM, Jedrin wrote:
I tried this which doesn't seem to do anything either:
page[k].set_style :z_index = 20
I believe that the following syntax is valid:
page[k].set_style :'z-index' = 20
I tried this:
C:\Users\Laurenceirb
irb(main):001:0
irb(main):002:0*
I tried this and I seem to still have the same exact problem:
page[k].set_style({:position = 'absolute', :left = (pidx * 300),
:top = (1 * (topidx * 200) + 80),
:'z-index' = 10})
A side note, is that if I do the following without the parens, I get a
syntax error
You can simply view source in a browser. Furthermore, Safari or
Firefox (with Firebug) can show you endless detail about the script on
your page. The shortcut is the same: Control (or right) click on the
element, and Inspect Element. That will show you the actual rendered
properties, not
On Tue, May 31, 2011 at 6:25 PM, Jedrin jrubia...@gmail.com wrote:
I tried this and I seem to still have the same exact problem:
Another resource that's incredibly helpful, in case you don't already
subscribe, is the css-discuss list. It's run by Eric Meyer and is a
6 matches
Mail list logo