On Apr 5, 2009, at 11:38 PM, jabauer wrote:

>
> For some reason the stylesheet I have associated with my layout will
> not change the background-color for the content retrieved from my with
> <%= yield %>.  To make matters stranger, I can style *any* part of the
> html in my view that isn't the background-color.  Has anyone had this
> problem before?  I have been searching for posts, but have come up
> empty handed.
>
> Many thanks for your help.  I've appended the code for the layout and
> css to this post.  The relevant div is "main-wrapper".
>
> --Jean--
>
> P.S. The XHTML and CSS both validate, so I don't think that is the
> problem.
>
> Here is the code for the layout:

>            <div id="main-wrapper">
>                <%= yield -%>
>
>            </div><!-- end main-wrapper -->

> #main-wrapper {
>       padding: 0 20px;
>       margin: 0 auto;
>       background: #ccb27f;  <!-- THIS IS WHAT DOESN'T WORK! -->
> }

Did you want to say:
        background-color: #ccb27f;

Could you have an early </div> tag in the template that's being  
yield'ed?

-Rob

Rob Biedenharn          http://agileconsultingllc.com
[email protected]


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to