Colin,

> Is this the <div id=sidebar> that we are talking about?
Yes!

>Expand the td and select the div id=sidebar that should be there I
> think.  Then you should see the style from style.css
*** You're onto something! ***

In the Firebug pane,  with the 2nd td expanded, when I bring the
cursor over:
body => teal (all except the top couple of debugging output, that are
exempt from subsequent mention)
 <div> => all white
        <link> => all white
        <p>  => all white
 <table> => all teal
        <tbody>  => all teal
                <tr> => all teal
                        <td> left-half => all teal
                        <td> right-half => all teal
                                (text) => all teal


That looks to me like the sidebar background-color spec is being
subordinated to the main-page spec or .... I have no idea.

Best wishes,
Richard


On Mar 17, 1:08 pm, Colin Law <clan...@googlemail.com> wrote:
> On 17 March 2010 16:52, RichardOnRails
>
>
>
> <richarddummymailbox58...@uscomputergurus.com> wrote:
> > Hey Colin and Michael,
>
> > Thanks to both of you for your responses.
>
> >> Assuming you have "<div id="sidebar"><%= yield :sidebar %></div>"
> > somewhere in your view... [Michael]
>
> > Sidebar is referenced in three file the app (according to my Ruby
> > Search.rb program):
> > app\views\layouts\standard.html.erb:
> >    <body id="library">
> >        <div id="container">
> >            <div id="header">
> >                <h1>Receipts Tracking System</h1>
> >                <h3>Library powered by Ruby on Rails</h3>
> >            </div>
>
> >            <div id="content">
> >                <%= yield -%>
> >            </div>
> >            <div id="sidebar"></div>
> >        [snip]
> > app\views\layouts\expenses.html.erb:
> > <body>
> >    <p style="color: green"><%= flash[:notice] %></p>
>
> >    <table width="100%">
> >        <tr>
> >            <td>  <%= yield %>              </td>
> >            <td>  <%= yield :sidebar %>  </td>
> >        [snip]
> > app\views\expenses\new.html.erb (at the bottom):
> >        <% content_for :sidebar do %>
> >          This is my sidebar stuff from:<br>
> >            new.html.erb<br>
> >            RTS\app\views\expenses
> >        <% end %>
>
> >> This doesn't appear to be a rails issue at all [Colin}:
>
> > I opened Firebug when "New Expenses", the offending page, was being
> > displayed in Firefox.
> > Fiirebug referenced  Scaffold.css 3 times.  But style.css wsas never
> > mentioned, which is where the following definition is given:
>
> I presume you have included style.css?  Assuming that it is in
> public/stylesheets then you should have
>   <%= stylesheet_link_tag 'style' %>
> in the header.  Check in View, Page Source to see if it is there and
> looks correct.  In the html it should reference /stylesheets/style.css
>  (with leading /).
>
>
>
>
>
> > div#sidebar {
> >   width: 200px;
> >   margin-left: 480px;
> >   background-color: #00FFFF;
> > }
>
> > Does that point to an error in my code?
>
> > Regards,
> > Richard
>
> > The gory details from Firebug follow:
>
> > In the left-hand pane:
> > body
> >        div (not expanded)
> >        link (")
> >        table
> >                tbody
> >                        tr
> >                                td (My page's left side, not expanded)
> >                                td (My page's right side = "sidebar", not 
> > expanded)
>
> Is this the <div id=sidebar> that we are talking about?
>
>
>
> >                        /tr
> >                /tbody
> >        /table
> >        div id = divCleekiAttrib (other stuff)
> >        /div
> > /body
>
> > Except for the last div, that structure matches my expenses,html.erb:
> >        <body>
> >            <p style="color: green"><%= flash[:notice] %></p>
>
> >            <table width="100%">
> >                <tr>
> >                    <td>  <%= yield %>              </td>
> >                    <td>  <%= yield :sidebar %>  </td>
> >                </tr>
> >            </table>
> >        </body>
>
> > So far, so good.
>
> > But with the focus on the 2nd td in the left-hand pane,
>
> Expand the td and select the div id=sidebar that should be there I
> think.  Then you should see the style from style.css
>
> 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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to