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 3 of 3
  1. #1
    Senior Member Ferro's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    386
    Member #
    14204
    Liked
    5 times
    Hello -

    I have been making rolllover navs with some display:block anchor tags inside a containing div. The anchor blocks have background images.

    However a lot of the time I read about "You must make navs with unordered lists".
    Is there a particlar reason for this? The anchor tags inside containing divs seem to be a lot cleaner markup than writing loads of <ul> and <li> etc. etc. and then writing it for the anchor blocks contained WITHIN the list in the markup and css - all I currently do is write the style for the anchor blocks and that's it.


    Why should I use lists and not anchor blocks, and which method do you use?

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    The reason is because eliminating inline styling in favor of CSS is only one step on the road to `semantic markup' -- i.e., markup that makes sense from a structural point of view. Structurally, navigation is just a list of links, possibly with nested lists within. Stylistically, we make them look like navbars or what have you. But structurally speaking, nav is a list, and that's why it's a good idea to mark it up as such.

    I use lists, to answer your second question :-)

  4. #3
    Senior Member Ferro's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    386
    Member #
    14204
    Liked
    5 times
    Quote Originally Posted by Shadowfiend
    The reason is because eliminating inline styling in favor of CSS is only one step on the road to `semantic markup' -- i.e., markup that makes sense from a structural point of view. Structurally, navigation is just a list of links, possibly with nested lists within. Stylistically, we make them look like navbars or what have you. But structurally speaking, nav is a list, and that's why it's a good idea to mark it up as such.

    I use lists, to answer your second question :-)
    Aha - thank you - i shall get into the habit of using lists then. I must investigate more this "semantic markup".....


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 06:34 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com