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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top