What should I use to style my flash messages in my CSS? I canβt change the style. Here is the corresponding code in the <body> my application layout:
<div class="container"> <%= render 'layouts/header' %> <section class="round"> <div id= "notice"> <% flash.each do |key, value| %> <div class="flash <%= key %>"> <%= value %> </div> <% end %> </div> <%= yield %> </section> <%= render 'layouts/footer' %> <%= debug(params) if Rails.env.development? %> </div>
The corresponding original CSS was something like this, but currently it does not work.
.error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;} .success {background:#e6efc2;color:#264409;border-color:#c6d880;}
source share