Navigation bar and footer

This is a discussion on "Navigation bar and footer" within the Web Page Design section. This forum, and the thread "Navigation bar and footer are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 27th, 2007, 13:08
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 21
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Navigation bar and footer

I am trying to place the navigation area underneath the header and above all the other content and also trying to place a footer on the page:

I don't think I have the proper code, I was hoping you could tell me what's wrong with my code:

Code: Select all
#links 
{
    width: 150;
    float: left;
    margin-right: 10px;
    border-right: solid 1px black;
    padding: 0px 10px 10px 5px
}


Here is the footer I was trying to create:

Code: Select all
#add 
{ border-top: solid 1px black;
    margin-top: 10px;
    padding-top: 5px
    display: clear;
    vertical-align: bottom 
}


Could you tell me what's wrong with the code?
Attached Images
File Type: jpg desktop (800 x 500).jpg (110.2 KB, 33 views)

Last edited by Daniel; Oct 28th, 2007 at 00:22. Reason: Added code tags - [code]
Reply With Quote

  #2 (permalink)  
Old Oct 27th, 2007, 13:10
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Navigation bar and footer

Have you got any HTML so we can see what's going on around about?
Reply With Quote
  #3 (permalink)  
Old Oct 28th, 2007, 05:00
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 21
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: Navigation bar and footer

Oops once again...sorry


Code: Select all
<div id="wrapper">
    <!-- Adrian Rodriguez Logo -->
    <div id="head">
    <p><a href="index.htm">
    <img src="images/logo.jpg" width="800" height="200" 
    alt="Adrian Rodriguez: Web developer and Graphic Designer" />
    </a>
    </p>
    </div>
    
    <!-- Links -->
    <div id="links">
    <p><a href="index.htm">Home</a>
       <a href="bio.htm">About Me</a>
       <a href="gal.htm">Portfolio</a>
       <a href="contact.htm">Contact</a>
       <a href="http://gdfc.freeforums.org">Forums</a>
       <a href="resrc.htm">Resources</a>
     </p>
    </div>
    
    <!-- Body Content -->
    <div id="content">
    <p id="first">
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et 
    accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
     Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr,  sed diam 
     nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At 
     vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata 
     sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr,  
     sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. 
     At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
      sanctus est Lorem ipsum dolor sit amet.
    </p>
    
    <!-- Self Photo -->
    <p id="second">vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata 
     sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr,  
     sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. 
     At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
      sanctus est Lorem ipsum dolor sit amet.</p>
    </div>
    
    <!-- Address -->
    <div id="add">
    <address>
    4296 Hwy 63 Black Rock, Arkansas 72415
    </address>
    
    </div>



</div>
Reply With Quote
  #4 (permalink)  
Old Oct 28th, 2007, 14:07
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Navigation bar and footer

Try making the width of the link box 100%. Like this:
Code: Select all
#links 
{
    width: 100%;
    float: left;
    margin-right: 10px;
    border-right: solid 1px black;
    padding: 0px 10px 10px 5px
}
That should work as it takes up the page width and pushes the text below it.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #5 (permalink)  
Old Oct 29th, 2007, 07:49
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Navigation bar and footer

You might want to use an ordered list:

HTML: Select all
<ol id="navlinks">
<li class="first"><a href="index.htm">Home</a></li>
<li><a href="bio.htm">About Me</a></li>
<li><a href="gal.htm">Portfolio</a></li>
<li><a href="contact.htm">Contact</a></li>
<li><a href="http://gdfc.freeforums.org">Forums</a></li>
<li class="last"><a href="resrc.htm">Resources</a></li>
</ol>
and in your css:

HTML: Select all
 #navlinks li {
    display: inline;
    margin-right: 0.4em;
    padding-left: 0.75em;
    border-left: 1px solid #99C;
    color: #99C;
}
#navlinks li.first {
    border-left: 0;
}
#navlinks {
    width: 800px;
    margin: 0 auto;
}
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)

Last edited by Monie; Oct 29th, 2007 at 07:59.
Reply With Quote
  #6 (permalink)  
Old Oct 29th, 2007, 10:04
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 21
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: Navigation bar and footer

cool thanks I will try it
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to set up a footer? Grubious Web Page Design 3 Jun 14th, 2008 12:22
css for this footer r0ck80y Web Page Design 1 May 17th, 2008 13:54
Footer not where i want it? PicoDeath Web Page Design 15 Oct 29th, 2006 14:12


All times are GMT. The time now is 19:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43