Forum: Ruby on Rails forms & link css classes - not working

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2009-05-13 03:17
(Received via mailing list)
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" />
Tom Z Meinlschmidt (Guest)
on 2009-05-13 03:21
(Received via mailing list)
hi,

<a href="/galleries/1" style="urgent"> has to be
<a href="/galleries/1" class="urgent">

(style => class)

tom

removed_email_address@domain.invalid wrote:
> }
>   font-weight: bold;
> size="80" type="text" value="Camp 09" />
>

--
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
  - experienced RoR/PHP freelancer, available for hire

   www.meinlschmidt.com  www.maxwellrender.cz  www.lightgems.cz
===============================================================================
(Guest)
on 2009-05-13 03:44
(Received via mailing list)
hah! How did I not see that! Thanks!
Jim (Guest)
on 2009-05-13 11:59
(Received via mailing list)
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" />
This topic is locked and can not be replied to.