Jump to content

Class definitions


rande

Recommended Posts

I can't find a list of id/class definitions.

I copied some code and it has <li id="active"><a href="#" id="current">.

 

i'm just wondering what the active and current does.

And I'm looking for a reference for other questions.

 

Can anyone help?

 

thanks

Link to comment
Share on other sites

Classes/IDs are set by whoever codes the site, and will vary from site to site. You would need to check the CSS stylesheet to see how they are styled.

 

In your example above, those classes most likely indicate the main navigation item that's currently active (#active) and the current sub navigation item within that main section (#current). Those IDs probably add specific styling to the navigation to show to the user where they are in the website.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...