473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1826

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

Similar topics

0
by: vMike | last post by:
I have an imageurl of an image (a larger image) set to an aspx file which does a Response.OutputStream. The url includes a query string. When the page is loaded this aspx file for this large image...
5
by: Derek Fountain | last post by:
I have a horizontal navigation bar, which is a single row table containing the right images. It "stretches" itself across the screen using a penultimate td like this: <td width="100%"...
5
by: Jerry | last post by:
Hello! I have an image that uses an image map for navigation. We would like a pull-down menu to appear when the user mouses over the link. The pull-down menu is another image that was created to...
1
by: RJ | last post by:
Hello! I am trying to lay out a left navigation column with a background image, where the left nav column runs the entire scrolled height/length of the page. The float:left column layout works...
3
by: Annette Acquaire | last post by:
I have and image map with a dozen hotspot links on it that I'm trying to get to open a new image over existing one on mouseover of each COORD. The only thing I was able to do was swap image on...
8
by: paul.denlinger | last post by:
Hi-- Things have gone well for me on this page design, but when I added a background image, it pushed everything down and messed up my page layout. Before I added the navigation background...
11
by: timmyb | last post by:
I have an image that is supposed to be in a centered div in the center of a page. It looks fine in IE7. But in Firefox, the image is pushed way over to the right. ...
1
by: Phil Stanton | last post by:
Is there any way of stopping the cursor jumping to a point roughly in the middle of the screen when loading a new picture into an Image Control. The picture is linked and pulled from an external...
5
by: EmmaEliza | last post by:
I have coded my css so that my text links have a background and border which I want to keep but I cant seem to edit the css so that my image links dont have the same thing.... ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.