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.
Fcf6328e679123eb81f8576eae5e8f74?d=identicon&s=25 wejrowski@gmail.com (Guest)
on 2009-05-13 01: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" />
1e7782e67bb34c9c67ed19d5cde5f4eb?d=identicon&s=25 Tom Z Meinlschmidt (Guest)
on 2009-05-13 01:21
(Received via mailing list)
hi,

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

(style => class)

tom

wejrowski@gmail.com 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
===============================================================================
Fcf6328e679123eb81f8576eae5e8f74?d=identicon&s=25 wejrowski@gmail.com (Guest)
on 2009-05-13 01:44
(Received via mailing list)
hah! How did I not see that! Thanks!
0373b303fabbee5e4f09059ad045e074?d=identicon&s=25 Jim (Guest)
on 2009-05-13 09: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.