Abder-Rahman Ali wrote:
> It worked when I did the following:
> 
> <div id="image_element" style="display: none;">

...but never do that.  Inline style attributes are poor practice.  They 
are hard to maintain, and clutter HTML markup with presentation 
information.

Instead, define a CSS class with the appropriate attributes.

Better yet, if the element is always going to be hidden, remove it from 
the HTML altogether.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to