cssClass and ID same name

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
 
B

bruce barker

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)
 
R

rodchar

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

Staff online

Members online

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,498
Latest member
log5Sshell/alfa5

Latest Threads

Top