rubyonrailsin

A Ruby and Rails talk

Wednesday, March 17, 2010


Re: [Rails] Problem with content-position and background-color in a sidebar

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

On 17 March 2010 14:19, RichardOnRails
<RichardDummyMailbox58407@uscomputergurus.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive