cssClass and ID same name

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

thanks,
rodchar
rodchar [ Mo, 31 März 2008 16:26 ] [ ID #1931421 ]

RE: cssClass and ID same name

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)


"rodchar" wrote:

> hey all,
> would there be a problem if i made the CssClass and ID the same name for any
> and all elements?
>
> thanks,
> rodchar
brucebarker [ Mo, 31 März 2008 17:39 ] [ ID #1932519 ]

RE: cssClass and ID same name

i wasn't thinking, thanks Bruce,
rod.

"bruce barker" wrote:

> 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)
>
>
> "rodchar" wrote:
>
> > hey all,
> > would there be a problem if i made the CssClass and ID the same name for any
> > and all elements?
> >
> > thanks,
> > rodchar
rodchar [ Mo, 31 März 2008 18:26 ] [ ID #1932534 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » cssClass and ID same name

Vorheriges Thema: input type file
Nächstes Thema: Skagen Performance Black Titanium Mens Watch 390LTMRBO