Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Sep 2003
    Posts
    6
    Member #
    2990
    Can someone give me insight into the use of the above named properties?

    When do I want to use them?
    I'm OK on the ID and Class usage, but don't know the implications of using identical words. Good, Bad?
    Do I want the naming to be the same or different for NAME and TITLE?

    I'm using DWMX and I keep getting complaints about frames not having titles and I just don't know what to name them and what kind of trouble I can get into.

    Thank-you in advance.

  2.  

  3. #2
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    the name attribute is mainly used for when going to parts of pages. (the part behind "#" in the end of a url)
    title is what you get when you put your mouseover something, so it's what alot of people know as a tool-tip
    Download Firebird now!

  4. #3
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    TITLE is supposed to be how IE uses the alt tag (used for a description of the images). It's supposed to more or less give the image/object a title so that when you hover over it, it displays the title. The name/id are interchangeable AFAIK and I forget which one, but only one is supported in XHTML.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  5. #4
    Junior Member
    Join Date
    Sep 2003
    Posts
    6
    Member #
    2990
    So....

    if I have a frameset and one of the frames has a
    <body id="top" title="top">.
    The background of that frame is top.png.
    (Set in the .css file with: #top {
    background-image: images/top.png);
    height: 46px;
    width: 1023px;} /* with more formatting to follow*/

    Am I doing the right thing by naming all associated stylin' things with "top" or should all these identifiers be named slightly different?

    I'm so close to feeling like I know what I'm doing, but have a few blanks that need to be filled in.

    Thank you, again, in advance for any insights and knowledge.

  6. #5
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    For frames.. the title is kind of worthless.. name/id is used for refrences via javascript... css doesn't matter at all what you name them. Frankly, I try to stay away from frames so it doesn't really matter.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  7. #6
    Senior Member james's Avatar
    Join Date
    May 2003
    Location
    Melbourne, AUSTRALIA
    Posts
    364
    Member #
    1352
    Correction Brak, the ID property can be used in CSS, similarly to what copes89 said.
    Code:
    #unique_id_name {
      width: 100px;
      }
    ...
    <hr id="unique_id_name" />
    Classes can be used in a similar way, but an ID can only be used for one element, officially at least.
    Code:
    .myclass {
      width: 100px;
      }
    ...
    <hr class="myclass" />
    James H
    Home Page · Mars Page · www.fihsf1.net (formerly www·fihs·net)

  8. #7
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    That's true, forgot about that. You can combine the two also...

    Code:
    .myclass #myid{
    someproperty:somevalue;
    }
    ...
    <span class="myclass" id="myid">look at this cool thing</span>
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:54 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com