Link Details

Link 19224 thumbnail
User 212317 avatar

By cocoliso
via cocoliso.us
Published: Apr 18 2007 / 08:06

Wondering why your shiny, new css class is not working. You have to be careful when mixing classes with ids. Here's a landmine you'll want to avoid.
  • 12
  • 4
  • 1465
  • 429

Comments

Add your comment
User 201565 avatar

Rob Lang replied ago:

1 votes Vote down Vote up Reply

A good tip-ette although it would be cool if cocoliso could expand it a little bit showing other css gotchas and how nesting tags can really make life tricky!

User 205870 avatar

MultiMike replied ago:

0 votes Vote down Vote up Reply

Hhhmm... I can't reproduce his problem with Firefox 2.0. His sample code works fine for me.

User 212429 avatar

thepope replied ago:

1 votes Vote down Vote up Reply

There's probably another error with his code where a selector of "#content p" is set, which has a higher precedence over "p.bad_idea".

User 225874 avatar

manicleek replied ago:

2 votes Vote down Vote up Reply

Be wary of taking CSS tips from sites that don't work properly in certain browsers

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.