cssClass and ID same name

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,
would there be a problem if i made the CssClass and ID the same name for any
and all elements?

thanks,
rodchar
 
its ok, but why? css can be attached to an id, so you don't need to use a
class name:

<style>
..#idName {...}
</style>



-- bruce (sqlwork.com)
 
i wasn't thinking, thanks Bruce,
rod.

bruce barker said:
its ok, but why? css can be attached to an id, so you don't need to use a
class name:

<style>
.#idName {...}
</style>



-- bruce (sqlwork.com)
 
Back
Top