• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML/CSS: navigation bar

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've met problems when implementing navigation with<table> & some CSS.
  • I can't make a gap between each tab when set border-spacing:0px;
  • There is a little gap between table and <h r>


  • The original problem and image is at:http://www.stanford.edu/class/cs142/cgi-bin/project.php?project=1

    Below is my implementation:


    HTML


    CSS
     
    Eric Pascarello
    author
    Rancher
    Posts: 15385
    6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You should not be using a table for navigation menus.

    You really should be using an unordered list: http://css.maxdesign.com.au/listamatic/

    Eric
     
    David Newton
    Author
    Rancher
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    And it'd probably be better to use a border rather than an HR if you're trying to get a line underneath a DIV.
     
    ahmer afzal
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    ------------------ Html -------------------

    ---------------- CSS -----------------------



    Code was Perfect in All the Browsers Without Table



    Regards
    Ahmer Afzal
     
    David Newton
    Author
    Rancher
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    ... but hopefully they've already fixed their problem from 2.5 months ago.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic