please explain css entry #subnav table table

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Noob Here.

What is saying? set the second table of the subnav id?

#subnav table table

I don't see any tables inside the the subnav id

<div id="subnav">
<asp:SiteMapDataSource runat="server" ID="subnavSitemap"
StartingNodeOffset="1" StartFromCurrentNode="false"
ShowStartingNode="false" />
<asp:Menu runat="server" ID="subMenu" SkinID="subMenu"
DataSourceID="subnavSitemap" />

also, whats the difference between

<div id=xxx>
<div class=xxx>

Re: please explain css entry #subnav table table wrote:

Quoted text here. Click to load it

Post the URL, and suddenly you look much less of a clueless newbie.

Quoted text here. Click to load it

Who's talking?

Quoted text here. Click to load it

If you're trying to guess the idea of the piece of CSS code, you were lucky.
But why are you guessing? This ain't no lottery: there is nothing to be won
by making guesses, as opposite to learning things from tutorials and

Quoted text here. Click to load it

You're quoting an unspecified source that apparently contains ASP
directives. So it's not an HTML document but a file from which an HTML
document may be generated by an ASP-enabled server. It may or may not
generate some tables, among other things.

Quoted text here. Click to load it

The former has an id attribute, whereas the latter has a class attribute.
The difference has been explained many times in this group and elsewhere;
it's also explained in any decent tutorial on HTML. Try to find some
relatively _old_ explanation in the FAQs or Google archive, since they tend
to get worse: people who really know things get tired of typing or
copypasting the same explanations over and over again, and then people start
getting responses from fellow newbies...

Jukka K. Korpela ("Yucca")

Re: please explain css entry #subnav table table wrote:
Quoted text here. Click to load it

I'll be kind, but Jukka is correct here, very strange that folks that
use a search engine company to view Usenet don't seem to know how to search!

For above, who knows, we would need to see the *output* HTML of such
code so a URL would be required. It would be like saying in PHP:

print $behindDoorNumber3;

Quoted text here. Click to load it

Among other things, specificity. In an HTML all IDs must be unique so
with respect to CSS

#someID can only refer to *one* element whereas
.someClass can refer to one or more elements...

Take care,


Re: please explain css entry #subnav table table

Quoted text here. Click to load it

Since it is asp, and most likely somewhere there is an output page that uses
tables, then the coding would apply once the page is formatted into html.
For example, check out the source code of this page:

I picked that one purely as an example.
You will see a lot of scripting at the top, then the tables and other html
are applied.

As for the differences between and ID and Class, ID can only be used one
time, whereas a class name can be used as often as desired, afaik.
#sample could only be declared for use once on that page.
.sample might be used more than once on the same page.

Class might more appropriate if say you had two or more tables and you
wanted that particular area of the table to look the same throughout the

Site Timeline