It's controlled with CSS in the web2py.css file. Look for "div.flash".
With the new bootstrap support, I put this in my layout.html: {{if response.flash:}} <div class="alert"> <button class="close" data-dismiss="alert">×</button> {{=response.flash}} </div> {{pass}} Right below: <div class="container"> On Thursday, June 7, 2012 9:46:06 PM UTC-7, Janath wrote: > > How can I change the location of response.flash. It overlaps with my menu > items... > > Thank you, > Janath > > On Thursday, November 5, 2009 1:16:41 PM UTC-6, Jonathan Lundell wrote: >> >> On Nov 5, 2009, at 8:52 AM, Thadeus Burgess wrote: >> >> Instead of putting a timer on response.flash, I moved its location to >> another location on the site that does conflict with any text. >> >> >> I like Gmail's approach to flash messages. They're not obtrusive, but >> they're still prominent enough to be noticed. And because they're >> relatively small, Google can reserve a portion of the page for them (which >> is otherwise white space), with the result that showing a flash message >> doesn't obscure other content, nor does it change the page layout. >> >> When I first registered at web2pyslices, I found the fade-out flash >> somewhat unhelpful, in that I didn't notice it until it was too late. >> >> OTOH, web2pyslices has a dedicated area in the UI header for the flash >> message, which is nice. >> >> Another thing I'd look at is to use color in the flash messages to >> indicate the message category. Notices of failed operations should look >> different from the routine "welcome back" message, IMO. >> >> >> -Thadeus >> >> >> >> >> On Thu, Nov 5, 2009 at 1:08 AM, Sebastian Brandt <snoogi...@gmail.com>wrote: >> >>> >>> Thnaks Russel for pointing that out. I think this is very nice. >>> Of course the message will be unread if the user is distracted, but >>> after the message is generated after user input in most cases I guess, >>> that should be no problem in my opinion. >>> >>> Sebastian >>> >>> On 5 Nov., 05:43, mdipierro <mdipie...@cs.depaul.edu> wrote: >>> > The problem with that is that if the user is distracted, the message >>> > fades out before he/she can read it. >>> > >>> > On Nov 4, 4:48 pm, Russell <russell.mcmur...@gmail.com> wrote: >>> > >>> > > Hi there, >>> > >>> > > A mild annoyance: Sometimes the response flash covers other text on >>> > > the screen and, when you are doing lots of testing, you are >>> > > continually clicking it to make it go away. >>> > >>> > > My suggestion is to replace web2py_ajax.html line 36: >>> > >>> > > jQuery('.flash').click(function() { jQuery(this).fadeOut('slow'); >>> > > return false; }); >>> > >>> > > with: >>> > >>> > > jQuery('.flash').hide().fadeIn(2000).animate({opacity: 1.0}, >>> > > 2000).animate({ opacity: 'hide' }, 2000); >>> > >>> > > This makes the response.flash fade in and then fade out. No clicking >>> > > required. >>> > >>> > > Thanks >>> > > Russell >>> >>> >> >> >> >> >>