# Forms & link css classes - not working

**URL:** <https://www.ruby-forum.com/t/forms-link-css-classes-not-working/167823>\
**Category:** Rails\
**Created:** [May 13, 2009, 1:17am UTC](https://www.ruby-forum.com/t/forms-link-css-classes-not-working/167823 "2009-05-13T01:17:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 1:17am UTC](https://www.ruby-forum.com/t/forms-link-css-classes-not-working/167823/1 "2009-05-13T01:17:09Z")

</div>

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:  
[Destroy](https://www.ruby-forum.com/galleries/1)  
and

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 1:21am UTC](https://www.ruby-forum.com/t/forms-link-css-classes-not-working/167823/2 "2009-05-13T01:21:51Z")

</div>

hi,

[ has to be  
 ](https://www.ruby-forum.com/galleries/1)

[ 

(style =\> class)

 

tom

 

removed\_email\_address@domain.invalid wrote:

 

> }  
> font-weight: bold;  
> size=“80” type=“text” value=“Camp 09” /\>

 ](https://www.ruby-forum.com/galleries/1)
# –

Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

- experienced RoR/PHP freelancer, available for hire

# [www.meinlschmidt.com](http://www.meinlschmidt.com) www.maxwellrender.cz www.lightgems.cz

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 1:44am UTC](https://www.ruby-forum.com/t/forms-link-css-classes-not-working/167823/3 "2009-05-13T01:44:41Z")

</div>

hah! How did I not see that! Thanks!

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 9:59am UTC](https://www.ruby-forum.com/t/forms-link-css-classes-not-working/167823/4 "2009-05-13T09:59:53Z")

</div>

It’s not supposed to be ‘style’, it’s ‘class’.

[Destroy](https://www.ruby-forum.com/galleries/1)  
and
