This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes HTML/CSS: navigation bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML/CSS: navigation bar" Watch "HTML/CSS: navigation bar" New topic
Author

HTML/CSS: navigation bar

Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 430
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


    To be or not to be. It's a question.
    Eric Pascarello
    author
    Rancher

    Joined: Nov 08, 2001
    Posts: 15376
        
        6
    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

    Joined: Sep 29, 2008
    Posts: 12617

    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

    Joined: Oct 12, 2009
    Posts: 3
    ------------------ Html -------------------

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



    Code was Perfect in All the Browsers Without Table



    Regards
    Ahmer Afzal
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    ... but hopefully they've already fixed their problem from 2.5 months ago.
     
     
    subject: HTML/CSS: navigation bar
     
    Similar Threads
    problem in running a servlet
    Firefox is driving me nuts - can't control td height
    converting html to pdf
    Problem hiding div within div
    multiple lines in button