Here is my code:
..
It parses only style=\'posit
It would have been handy if you'd posted the HAML you're using, but this is how it's done:
%div.some{ :style => "position: absolute; left: 300px; top: 300px;" }
Requested a hash special case at: https://github.com/haml/haml/issues/787 to allow us to write:
%div{ style: { display: "none", width: "50px" } }
much like is possible for class: ["class1", "class2"]
.
Another approach in addition to the hash one by Dan Cheail is such:
%div.some(style='position: absolute; left: 300; top: 300;')
No need to use %div
:
.some{ style: 'position: absolute; left: 300px; top: 300px;' }
If you are looking inline css for image :
<%= image_tag( 'image_name.png', style: 'height: 25px; width: 200px; position: absolute' ) %>