wejrowski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-May-12 23:16 UTC
forms & link css classes - not working
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" />
hi, <a href="/galleries/1" style="urgent"> has to be <a href="/galleries/1" class="urgent"> (style => class) tom wejrowski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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" /> >-- ==============================================================================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 ===============================================================================
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <wejrow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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" />