Skip navigation
Currently Being Moderated

Navigation Bar at the bottom of the page

May 27, 2012 9:43 AM

Tags: #cs5 #adobe #dreamweaver

Hello,

 

I am currently trying to create a navgiation bar which is usually seem at the bottom of most webpages. Is this difficult to do? I would be looking for one with lines between each link,

 

Regards,

 

Alex

 
Replies
  • Currently Being Moderated
    May 27, 2012 9:55 AM   in reply to alexisonsmith3

    Difficult to do?  No.

     

    <ul id="bottom-nav"><li><a hef="whatever.php">whatever</a></li><li class="last"><a hef="whatever2.php">whatever2</a></li></ul>

     

    With this CSS -

     

    ul#bottom-nav {

         list-style-type:none;

         overflow:hidden;

         width:70%;

         margin:0 auto;

    }

    ul#bottom-nav li {

         float:left;

         padding-right:10px;

         border-right:1px solid #FFF;

    }

    ul#bottom-nav li.last {

         border:none;

    }

    ul#bottom-nav a {

         /* your styles here */

    }

     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2012 1:33 PM   in reply to alexisonsmith3

    You could use a pike  |  between links

     

    <ul id="bottom-nav">

    <li><a hef="whatever.php">whatever</a></li>  | 

    <li class="last"><a hef="whatever2.php">whatever2</a></li>  |

    <li class="last"><a hef="whatever3.php">whatever3/a></li>  |

    </ul>

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2012 1:43 PM   in reply to alexisonsmith3

    >  there are no lines between each link

     

    There would be if you have created the border style properly.  Or as Nancy suggests use a pipe symbol "|".  I don't like doing it that way, but it works.

     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2012 1:47 PM   in reply to MurraySummers

    PIPE not PIKE (must have fish for brains today).

     

     

    N

     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2012 1:48 PM   in reply to Nancy O.

    We knew what you meant!

     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2012 2:21 PM   in reply to MurraySummers

    ul#bottom-nav li {

    float:left;

    padding-right:10px;

    border-right:1px solid #FFF;

    }

     

    creates a white line between <li> items on a white page.

     

    Changing the color is all that's needed

     

    ul#bottom-nav li {

    float:left;

    padding-right:10px;

    border-right:1px solid #333; /* adjust to any non-white color to suit */

    }

     
    |
    Mark as:
  • Currently Being Moderated
    May 27, 2012 3:13 PM   in reply to John Waller

    White on white is one of my preferred color combos.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points