On 17 March 2010 14:19, RichardOnRails <[email protected]> wrote: > In app\views\expenses\new.html.erb, I’ve got (just so I know where the > stuff on the page came from, for now): > <% content_for :sidebar do %> > This is my sidebar stuff from:<br> > new.html.erb<br> > RTS\app\views\expenses > <% end %> > > In public\stylesheets\style.css, I’ve got: > div#sidebar { > width: 200px; > margin-left: 480px; > background-color: yellow; > } > > Problem: My page displays the sidebar to the right side as I intend, > but: > - It displays the sidebar’s content as intend ... almost: that is, the > text appear centered vertically rather than on top > - It continues to have a lily-white background.
This doesn't appear to be a rails issue at all. However, install the Firebug pludin for Firefox and then you can inspect the div and see what it's style is and where those styles are inherited from. Colin -- 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.

