It's not supposed to be 'style', it's 'class'.

<a href="/galleries/1" class="urgent">Destroy</a>
and <input class="m_title" id="gallery_name" name="gallery[name]"
size="80" type="text" value="Camp 09" />


On May 12, 7:16 pm, "wejrow...@gmail.com" <wejrow...@gmail.com> wrote:
> I used a scaffold to create an interface. I'm trying to style it and
> I'm having trouble. In my css I have:
>
> #content a, a:link, a:visited{
>         color: #ff8400;}
>
> #content a:hover{
>         background: #ff8400;
>         color: #FFFFFF;
>
> }
>
> #content a.urgent, a.urgent:link, a.urgent:visited {
>         color: #FF0000;}
>
> #content a.urgent:hover {
>         color: #FFFFFF;
>         background: #FF0000;
>
> }
>
> #content input.m_title{
>   font-weight: bold;
>   font-size: 28px;
>   padding: 3px;
>
> }
>
> The style for the links works, but not for the .urgent class. Also the
> style for the input.m_title will not work. When I view the source the
> class is written right too:
> <a href="/galleries/1" style="urgent">Destroy</a>
> and <input style="m_title" id="gallery_name" name="gallery[name]"
> size="80" type="text" value="Camp 09" />

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to