I wouldn't use the <form> tag for any kind of visual layout, its interpretation varies considerably in different browsers. You could make things a lot easier if you used a div with a background-image property set to the src of your <img> tag now. That way you can nest elements inside of it, like a form! and then upon some action reveal the form and it will appear to be a layer on top of the image with the form controls.
On Aug 6, 2:50 pm, Ken Snyder <[EMAIL PROTECTED]> wrote: > Jean-Christophe Roux wrote: > > Hello, > > > I have an <img> tag and I'd like a form to appear and overlay that > > image upon clicking on some button. The image would be still visible > > beneath the form through some transparancy effect. I tried the DOM > > Popup Kit but the results on Safari were pretty poor (to be fair, the > > doc clearly states that this browser is not tested) although, I must > > say, I was pretty happy with the results on IE and Firefox. Is there > > another library that would handle Safari in a better fashion? Or maybe > > if someone could point me to a strategy to achieve that effect? Thank > > you in advance. > > Jean-Christophe > > You can try <input type="image" .../> which allows you to make a form > submit button out of an image. You can also use an <a> with a > background image. Generally laying elements over top of <img> elements > is unnecessary and overly complex. > > - Ken Snyder --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
