472,102 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,102 software developers and data experts.

CSS Image Navigation Bar Help...

Hi there. I have been attempting (for a few days on end, sadly) to get a navigation section of my new site to work. Granted, this is the first time I've ever written CSS...although I had PLENTY of practice using tables...tee hee.

Anyways, this should be EXTREMELY simple...as I want NO rollovers, no fancy hovers, no current-page differences...I just want the navigation bar image to be "click-able" where the words are.

You can see the site as it stands today here:
http://www.functiont.net/2.0/index.html

You can see an image of the navigation bar at the following url:
http://www.functiont.net/2.0/images/navigation.gif

Below you can see both the (X)HTML and the CSS of my site as it stands today (I use an external CSS file):


(X)HTML:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.  
  4. <head>
  5.     <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
  6.     <title>Function T .:. Home</title>
  7.     <style type="text/css" media="all">@import "css/master.css";</style>
  8. </head>
  9.  
  10. <body>
  11.  
  12. <div id="entire-page">
  13.     <div id="page-container">
  14.         <div id="ghost"></div>
  15.         <div id="header"></div>
  16.         <div id="navigation-bar">
  17.             <ul id="navigation>
  18.                 <li id="navhome"><a href="#"></a></li>
  19.                 <li id="navbio"><a href="#"></a></li>
  20.                 <li id="navmedia"><a href="#"></a></li>
  21.                 <li id="navcontact"><a href="#"></a></li>
  22.                 <li id="navreviews"><a href="#"></a></li>
  23.                 <li id="navtutorials"><a href="#"></a></li>
  24.                 <li id="navlinks"><a href="#"></a></li>
  25.             </ul>    
  26.         </div>
  27.         <div id="content">
  28.  
  29.                 <h1>New Website Launched!</h1>
  30.                 <h2>10.01.2008</h2>
  31.                 Lorem ipsum debet tritani forensibus et nam, ex solet splendide mea, at cum menandri consetetur conclusionemque. Ocurreret persecuti eum at, intellegat temporibus cu sea. Tale modus mei cu, mucius offendit id mea, id consul urbanitas vis. Ius te alii deseruisse, at mea veri illum perfecto. Per iudico commodo blandit ea, mel eu illum sonet efficiantur, tota delenit splendide at qui.<br/><br/>
  32.  
  33.                 No vel ridens labores percipitur. Ad eum homero percipitur. Sit stet vero ex. In nec volumus explicari.<br/><br/>
  34.  
  35.                 Pro puto tempor cu, vix in populo doming legendos, ut has regione suavitate. Nec ea movet omnium assentior, ius solum feugiat no, ut est quem putant mollis. Eu simul suscipiantur has, equidem ornatus ea vel. Cu noluisse placerat nec, nostrum probatus eloquentiam cu sed. Lorem dicunt et pri, magna ubique no sed, in solum decore quidam pro.<br/><br/>
  36.  
  37.                 Ad blandit antiopam pri. Meliore necessitatibus et quo. Qui fabellas torquatos an. Id vel tantas recusabo, ex eos natum simul mentitum. Ea nostrud takimata iudicabit vel. <br/><br/>
  38.  
  39.                 <h1>This is Only a Test</h1>
  40.                 <h2>10.01.2008</h2>
  41.                 Id sit minimum patrioque ullamcorper, vix prompta intellegat at. Mea vidisse admodum denique in, at eam graecis expetendis referrentur, ancillae prodesset ut eam. Meliore luptatum appellantur duo eu. Cu dicam invenire has, ex affert pertinacia vis, ut impetus mandamus sea. Pri nisl atomorum ex, nam te eripuit numquam docendi. <br/><br/>
  42.  
  43.                 Est stet albucius maluisset id, et habeo graece molestie mel, adhuc nonumy eloquentiam ea vel. Ubique takimata persequeris ne his, pro an augue feugiat efficiendi, eu eam unum nominavi mediocritatem. Corpora disputando eloquentiam ex quo, cu prima choro salutandi his. Has eirmod regione accumsan eu. Cum ea wisi scripta, veritus assentior complectitur pro ea, mea cu aeterno vocibus eligendi. Ei eam maiorum perfecto. <br/><br/>
  44.  
  45.                 Et eam eius nostro. In alienum definitiones nec, sed wisi mentitum incorrupte ea, ei per quando appetere. Eu dicta vitae ignota vel. Eu qui quot aperiri adipiscing, eu vim novum deleniti, quod kasd eu has. Copiosae incorrupte neglegentur mea cu, sit adolescens elaboraret constituam te, ea sea tamquam molestie definiebas. Rebum harum labore pro ex, ex soluta contentiones vix, no usu esse nominati mandamus. <br/><br/>
  46.  
  47.                 Et pro aliquando expetendis theophrastus. Mei ne errem consequat, mei ut sonet singulis indoctum. Alia nihil civibus per ei. Ei sed mucius perfecto elaboraret, invidunt neglegentur ei mel, at vide tota quo. <br/><br/>
  48.  
  49.                 <h1>New Site Coming Soon!</h1>
  50.                 <h2>09.29.2008</h2>
  51.                 Id placerat phaedrum per. Nec ut persius legimus conceptam, ius no ludus clita consul. At atomorum voluptatum cum, duo cibo putant reprimique ne. Ea mei hinc eros noluisse, ad sea ipsum dicunt, alii debet tamquam te nam. <br/><br/>
  52.  
  53.                 Essent labores explicari cu duo. Ius causae copiosae an. Ex omnium diceret maluisset vim. Ad mel vivendo disputationi. Hendrerit democritum id cum, quodsi molestiae duo te.
  54.  
  55.         </div>
  56.         <div id="content-bottom"></div>
  57.         <div id="footer">
  58.             Home - Bio - Media - Contact - Reviews - Tutorials - Charts - Links <br/>
  59.             All information Copyright 2008 Tom Winchester unless otherwise specified. All original artists <br/>
  60.             and labels retain their full respective rights and royalties to all copyrighted material. Mixes are presented <br/>
  61.             for promotional purposes only. Duplication of any material in part or in whole without the <br/>
  62.             express written consent of Tom Winchester is strictly prohibited.
  63.         </div>
  64.     </div>
  65.  
  66. </div>
  67.  
  68.  
  69. </body>
  70. </html>
  71.  

CSS:
Expand|Select|Wrap|Line Numbers
  1. html, body {
  2.     margin: 0px;
  3.     padding: 0px;
  4.     background: url(../images/bgpattern.gif);
  5. }
  6.  
  7. #entire-page {
  8. }
  9.  
  10. #page-container {
  11.     margin: auto;
  12.     width: 750px;
  13. }
  14.  
  15. #ghost {
  16.     height: 15px;
  17. }
  18.  
  19. #header {
  20.     height: 110px;
  21.     background: url(../images/headers/rotator.php);
  22.     background-repeat: no-repeat;
  23. }
  24.  
  25. #navigation-bar {
  26.     width: 750px;
  27.     height: 40px;
  28.     background: url(../images/navigation.gif);
  29.     margin: 0px;
  30.     padding: 0px;
  31.     position: relative;
  32. }
  33.  
  34. #content {
  35.     background-image: url(../images/contentbg.gif);
  36.     background-repeat: repeat-y;
  37.     padding-top: 0px;
  38.     padding-left: 10px;
  39.     padding-right: 245px;
  40.     padding-bottom: 0px;
  41.     font-family: "Trebuchet MS", Verdana, Helvetica, Arial, Times;
  42.     font-style: normal;
  43.     font-size: 12px;
  44.     color: #858585;
  45.  
  46. }
  47.  
  48. #content-bottom {
  49.     height: 5px;
  50.     background-image: url(../images/contentbgbottom.gif);
  51.     background-repeat: no-repeat;
  52. }
  53.  
  54. #footer {
  55.     height: 80px;
  56.     padding: 5px;
  57.     text-align: center;
  58.     font-family: "Trebuchet MS", Verdana, Helvetica, Arial, Times;
  59.     font-style: normal;
  60.     font-size: 11px;
  61.     color: #cfcfcf;
  62. }
  63.  
  64. h1 {
  65.     margin-top: 0px;
  66.     margin-bottom: 0px;
  67.     font-family: "Trebuchet MS", Verdana, Helvetica, Arial, Times;
  68.     font-size: 24px;
  69.     font-weight: 200;
  70.  
  71.     color: #1c2939;
  72. }
  73.  
  74. h2 {
  75.     margin-top: 0px;
  76.     margin-bottom: 7px;
  77.     font-family: "Trebuchet MS", Verdana, Helvetica, Arial, Times;
  78.     font-size: 12px;
  79.     font-weight: 200;
  80.  
  81.     color: #c49271;
  82. }
  83.  
  84.  
  85.  
I have attempted to use methods from sources such as A List Apart, Subcide, FIR, and I couldn't seem to get any of them to work. I believe what I have above is correct (up to this point, at least). I just don't know how to take that image and make it so that a user can click on the word Home and go to a page...

If anyone would be able to take the time to explain these steps to me (apparently the other "definitive" sources couldn't get it through my head)...it would be greatly appreciated.

THANK YOU!!!

-Tom Winchester-
Oct 2 '08 #1
0 1733

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Derek Fountain | last post: by
5 posts views Thread by Jerry | last post: by
3 posts views Thread by Annette Acquaire | last post: by
11 posts views Thread by timmyb | last post: by
1 post views Thread by Phil Stanton | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.