HTML - Navbar Help!!!
Hello,
I've downloaded the Extreme Gaming template and was pleased to find the the navigation bar had a PSD that was easy and simple to edit. However, I'm having problems integrating the edited navigation bar into my site. When I do, it seems to move around all the tables and leave black spaces everywhere. I'm not experienced enough at HTML to find the problem and fix it. I was hoping that maybe someone could do it for me or give me a few pointers at what I'm doing wrong. Here's the images I go after editing the PSD and slicing it accordingly. This is what I want the new nav bar too look like... (mouse off) (mouse on) (those are all different images, not one big long one) Here's a zip for all the images above... images.zip The links are as follows... Home - index.html Forums - forums/index.php Downloads - downloads.html Structure - structure.html Frappr - frappr.html Mail - http://mail.google.com/a/extremedeadlyforce.com/ And here's the code for the current navbar... Code: <tr> <td colspan="3"> <a href="#"><img src="index_files/Slice_07_7.gif" alt="" hsrc="images/Slice_07_7_over.gif" border="0" height="37" width="57"></a></td> <td> <a href="#"><img src="index_files/Slice_08_8.gif" alt="" hsrc="images/Slice_08_8_over.gif" border="0" height="37" width="73"></a></td> <td> <a href="#"><img src="index_files/Slice_09_9.gif" alt="" hsrc="images/Slice_09_9_over.gif" border="0" height="37" width="49"></a></td> <td colspan="3"> <a href="#"><img src="index_files/Slice_10_10.gif" alt="" hsrc="images/Slice_10_10_over.gif" border="0" height="37" width="71"></a></td> <td colspan="2"> <a href="#"><img src="index_files/Slice_11_11.gif" alt="" hsrc="images/Slice_11_11_over.gif" border="0" height="37" width="81"></a></td> <td> <a href="#"><img src="index_files/Slice_12_12.gif" alt="" hsrc="images/Slice_12_12_over.gif" border="0" height="37" width="105"></a></td> <td> <a href="#"><img src="index_files/Slice_13_13.gif" alt="" hsrc="images/Slice_13_13_over.gif" border="0" height="37" width="93"></a></td> <td> <a href="#"><img src="index_files/Slice_14_14.gif" alt="" hsrc="images/Slice_14_14_over.gif" border="0" height="37" width="57"></a></td> <td> <a href="#"><img src="index_files/Slice_15_15.gif" alt="" hsrc="images/Slice_15_15_over.gif" border="0" height="37" width="85"></a></td> <td colspan="2"> <img src="index_files/Slice_16_16.gif" alt="" height="37" width="194"></td> </tr> Here's the link for the whole template... default_template.zip Thanks is advance! If you need anything else just say so. Similar TutorialsI am trying to create a navbar based on http://www.myweddingfavors.com. Here is mine: http://www.prizepappa.com In FireFox the onmouseover and onmouseout seem to be working fine but not in IE. There is a strange delay. And I can't seem to get my searchbar looking right. I am really new to this. Anyone think they could help me straighten out my code and css? Thanks Hello, I'm new to this forum, but I came here because I need help with editing a navbar that came with a free template I downloaded. You can view the navbar (along with the rest of the sight) here. I'd like to change it to these images in the order they come. Regular = Mouse Over = Link To = index.htm Regular = Mouse Over = Link To = forum/index.php Regular = Mouse Over = Link To = download.htm Regular = Mouse Over = Link To = http://mail.google.com/a/layercakeclan.com Regular = Mouse Over = Link To = frappr.htm Regular = Mouse Over = Link To = music.htm And here's the spacer to fill the rest of the space... The current code for the navbar is... HTML Code: <td colspan="3"> <a href="index.html"><img src="images/Slice_07_7.gif" alt="" width="57" height="37" border="0" hsrc="images/Slice_07_7_over.gif"></a></td> <td> <a href="forum/index.php"><img src="images/Slice_08_8.gif" alt="" width="73" height="37" border="0" hsrc="images/Slice_08_8_over.gif"></a></td> <td> <a href="forum/index.php?board=3.0"><img src="images/Slice_09_9.gif" alt="" width="49" height="37" border="0" hsrc="images/Slice_09_9_over.gif"></a></td> <td colspan="3"> <a href="roster.html"><img src="images/Slice_10_10.gif" alt="" width="71" height="37" border="0" hsrc="images/Slice_10_10_over.gif"></a></td> <td colspan="2"> <a href="matches.html"><img src="images/Slice_11_11.gif" alt="" width="81" height="37" border="0" hsrc="images/Slice_11_11_over.gif"></a></td> <td> <a href="downloads.html"><img src="images/Slice_12_12.gif" alt="" width="105" height="37" border="0" hsrc="images/Slice_12_12_over.gif"></a></td> <td> <a href="sponsors.html"><img src="images/Slice_13_13.gif" alt="" width="93" height="37" border="0" hsrc="images/Slice_13_13_over.gif"></a></td> <td> <a href="links.html"><img src="images/Slice_14_14.gif" alt="" width="57" height="37" border="0" hsrc="images/Slice_14_14_over.gif"></a></td> <td> <a href="about.html"><img src="images/Slice_15_15.gif" alt="" width="85" height="37" border="0" hsrc="images/Slice_15_15_over.gif"></a></td> <td colspan="2"> <img src="images/Slice_16_16.gif" width="194" height="37" alt=""></td> ..that's all the information I think you'll need, but if you need more jusr reply and I'll see what I can do. Hi, sorry if this is something that has already been answered but I'm trying to make a site that had a standard navbar on every page, however when ever I want to change the navbar I have to copy the new code to each and every page on the site. How can I do this so that I only need to update the code in one place? I did a course in web design years ago and in that I used frames to achieve this however it's my understanding that frames are now depreciated and so there must be another way to do this? I know you can link to javascript that is stored in another file as well as have your css as a separate file, is it possible to do this with HTML and if so is that the easiest way to do it? I know I have posted in the HTML section but I'm also trying to learn PHP at the moment (which is largely what the site if for) so if there is a solution involving PHP that that's welcome too, doesn't have to be a HTML solution, I just presumed that there would be an easy way to do it with HTML alone. I fixed It! I added the images inside the banner image hi there, ive searched all over the internet about this. but i think im searching the wrong way...and thats why im here, to ask you guys. how does one get the neato lil icon in the navbar for their website? im fairly new to html, but if anyone could explain or point me in the right direction, i would be very appreciative thanks I need to create a very basic nav bar with some properties. Here are my requirements below: *I use six images in place for the link *I use six additional images for 'hover images'. So when the user hovers over one of the nav images a new one shows up *Each additional image is different. *I need it to work in ie6(hopeful), ie7, ie8 *I would like for it to be valid code as well. Now I'm busy doing css navs and I forget the 'old school' days of html nav bars. What would be good resources for such a navbar for me to review and create this? Any help would be greatly appreciated. Hello folks! I'm currently designing a site and must create the navbar below. However, to maintain consistency with IE6, we're not going to be using negative margins which makes this much more difficult. Between my partner and myself we've put a good 10 hours into what we thought was a simple element. Despite him being a programming and myself being a graphic developer, we'be both had a limited amount of education in HTMl and CSS and assumed we'd be able to handle it. Unfortunately it's not looking so at the moment. Any help given is most appreciated... I'm super frustered. Here are the two images I'm using in the above example if anybody feels like taking a stab at it: Hello, Can someone please tell me how I can implement a navigation menu which will highlight the currently viewed page content when using CMS? Basically every page address has the name 'index.php?site=(name of page)' so effectively every page is the same but the content differs. I want to add a navigation menu which indicates the currently viewed content within the page. Thanks very much in advance for your time. Hi all, I'm obviously a newbie here, but I was wondering if anyone could provide some help on this NavBar problem that I'm having on a site I'm building for a client. This is probably an easy fix, but I'm not sure what the exact issue is. The site is http://www.telcare.com/ I added that new button for "Careers" last night and now I'm noticing on Firefox & Chrome that the dark blue NavBar with the buttons is stretching to the right. I'm thinking that perhaps the buttons are too wide and it's moving the dark blue background bar beyond the page size. Any help or advice will be much appreciated. Thanks Can anyone help me with this problem? www.enveme.com/index.php The navbar is separating and i can not figure out why. Hi there I have a navigation bar on the site im building, but when im in screen resolution 800x600 two of the links do not work, they become unclickable. Here is the html code for one of the pages: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Language" content="EN-GB"> <link rel="stylesheet" type="text/css" href="styles4.css"> <title>Kabasa Guest House and Restaurant</title> <meta name="author" content="xxxxx"> <meta name="description" content="xxxx"> <meta name="copyright" content="2011"> <meta name="keywords" content="xxxxx"> </head> <body> <ul id="navbar"> <li><a href="home5.html">HOME</a></li> <li><a href="menu4.html">MENU</a></li> <li><a href="room4.html">ROOMS</a></li> <li><a href="rates2.html">RATES</a></li> <li><a href="book.html">BOOK</a></li> </ul> <div id="header"> <h1 align="center">Kabasa Guest House and Restaurant</h1> <div id="address"> <pre> xxxxxxx xxxx xxxx 0000000 </pre> </div> </div> <h3>Rates</h3> <div id="rates"> <pre> <u>Our Rates are as follows:</u> <b>Single rooms:</b> Self contained complete with breakfast at only kshs 1500 ($17)<br /> <b>Double rooms:</b> Self contained complete with breakfast at only Ksh 2500 ($28)<br /> <b>Double rooms twin rooms:</b> Self contained complete with breakfast at only Ksh 2500 ($28)<br /> <b>Lunch and dinner</b> is also available at very affordable rates. See our restaurant section for more details.<br /> <b>Our aim </b>is to provide the best service both to local and international clients at the most economical rates. </pre> </div> </body> </html> CSS code: Code: #navbar li { list-style-type: none; background-color: #CCFFFF; margin: -1%; margin-top: 2%; position: relative; top: 20px; left: -6px; padding: 1px; width: 12%; font-size: 20px; } #navbar a:hover { color: #000; background: #fff; } body { font-family:Lucida Grande,Tahoma,Helvetica; font-size:11pt; color:#000066; background:#ffffcc; } h3 { position: relative; top: 15%; left: 45%; } h4 { position:absolute; top: 10%; left: 40%; } h5 { position:absolute; top: 14%; left: 36%; } h6 { position: absolute; margin: auto; left:0; right:0; top: 37%; width: 520px; } #address { position: absolute; margin: auto; left:0; right:0; font-weight: bold; font-size: 10pt; font-family: arial, sans-serif; width: 182px; } #header { position: absolute; margin: auto; left:0; right:0; top: 2%; width: 800px; } p { position:absolute; top: 53%; left: 5%; } pre { margin: 8px 8px; clear:both; z-index: 2; background-color:white; filter: alpha(opacity=75); opacity: 0.75; } #rates { position:absolute; top: 50%; left: 4%; width: 85%; } When in 1440 x 900 all the links work fine. The two links that stop working in 800x600 are Home and Menu. Any ideas on what could cause this? Many thanks Jackie Hello everyone, here we go: I've got nice nav bar with js, working perfect (got it at http://net.tutsplus.com/tutorials/de...vigation-menu/ ), now when I try to add rel="lightbox" to images, the lightbox doesn't work ? Here's the html, I'll explain more; HTML Code: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>untitled</title> <link rel="stylesheet" href="css/style.css" type="text/css" /> <!--[if lt IE 8]> <script src ="http://ie7-js.googlecode.com/svn/version/2.1(beta2)/IE8.js"></script> <![endif]--> </head> <body> <ul id="nav"> <li><a href="#">Home</a></li> <li><a href="#">About</a> <ul> <li><a href="#">About Us</a></li> <li><a href="#">About Them</a></li> <li><a href="#">About You</a> <ul> <li><a href="#">More About Us</a></li> <li><a href="#">More About Them</a></li> <li><a href="#">More About You</a></li> </ul> </li> </ul> </li> <li><a href="#">Portfolio</a></li> <li><a href="#">Contact</a> <ul> <li><a href="#">International</a></li> <li><a href="#">Corporate</a> <ul> <li><a href="#">International</a></li> <li><a href="#">Corporate</a></li> <li><a href="#">American Offices</a></li> </ul> </li> <li><a href="#">American Offices</a></li> </ul> </li> <li><a href="#">Mission Statement</a></li> </ul> <p> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.core.js" type="text/javascript"></script> </p> <p> <img src="file:///C|/Users/Miha/Documents/_Blinds_.jpg" width="256" height="256"> <script type="text/javascript" src="js/scripts.js"></script> </p> </body> </html> In order to install the "lightbox": You will need to include these three Javascript files in your header (in this order). <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> If I place these scripts in head - it wont work. If i delete the bottom three scripts which are used for nav bar then lightbox will work but then I shut off animation for nav bar? May-b someone had same problem and found solution where to put this three scripts from lightbox to work with nav bar ? (files for lightbox are in right position, styles are in right place, js is also located right - triple checked) Finished the whole d**n site and now the lighbox is eating my brains.. Tried searching for the answer on google and other forums and didnt find answer so any idea at all is very welcome. Hello everyone. I know this should be a simple task, but I can't get my nav bar to line up where I want it to. I would like it to be in the center along the bottom of my header, and I have it there now but only in Firefox. IE has it to the left of center and so does Safari. the url is www.thedarkrm.com I also can't seem to get the same navbar for another site I'm working on to line up in the bottom right of the header. All of my widths are set but it still ends up below and outside the header when I set the 'right' and 'bottom' properties to 0. I would really appreciate any suggestions. Thanks! Hi folks. My first post hear and happy to see such an active forum on html. I'm no coder, but I have some experience. I'm doing a basic academic website (no flash, nothing fancy) for a steering committee at school with Dreamweaver 8 Mac. So far it seems to behave well, but there are 2 problems: 1) The NavBar moves down a bit (sometimes a lot) in the frame depending on the webpage. For example, if you click on "WhoWeAre" the bar drops a few hundred pixels along with the image and makes it look pretty sloppy (the most with Firefox - not so bad with Safari). How can I make sure the NavBar and the image above it (of the globe/hands) remain at the uppermost part of the frame? 2) the site looks pretty much the same in Safari and Firefox, but while using IE the top banner expands the whole screen. Anyone have any suggestions on this? The code is no doubt sloppy -- I'm a beginner and I'm forced to implement so of the University's code (for the black banner on top) into the site. With Firefox and Safari the banner stays the width of the frame and looks good. With IE and just expands indefinitely. Anyway, if anyone has any suggestions, I would be very grateful. Thanks for reading! Here's the site: http://people.umass.edu/luke/PEP/index.html My main pages have a thick navy blue nav bar at the top. http://budurl.com/u24k/d This is the way I'd like it to be. I copied and pasted the code to create the portfolio pages http://budurl.com/7fpy/dbut the navbar appears skinnier ... making a space appear when the "portfolio" pulldown menu is engaged. I'm probably missing something completely obvious, right? Thanks so much for your help! I just started my site and I been reading lots of forums on how everything works. I am still a noob at HTML. I have basic understanding but not enough. Now I been reading that having a Home link on your navbar that is a follow link it can cost you in the long run. So I was wondering if someone can take a look at this code and set the Home Link as no follow or tell me how. Or if its already set to no follow let me know. HTML Code: <style type="text/css"> div.menubar{ color :#000000; background-color :#000000; width :100%; padding :5px } a.menu{ width :100px; text-align : center; font-family: Verdana; font-style : normal ; font-size : 9pt; font-weight :bold; color : #5CB3FF; text-decoration : none; background-color :#153E7E; padding :3px; border-style : outset ;border-color :#153E7E; ;border-width : largest } a.menu:hover{ color :#153E7E; background-color :#5CB3FF; border-style :inset ;border-color :#153E7E;border-width :medium } </style> <div class="menubar"> <a class="menu" href="http://www.matrixanime.net">Home</a> <a class="menu" href="http://www.matrixanime.net/p/dubbed-anime.html">Dub Anime</a> <a class="menu" href="http://www.matrixanime.net/p/subbed-anime.html">Sub Anime</a> <a class="menu" href="http://www.matrixanime.net/p/games.html">Games</a> <a class="menu" href="http://matrixfanfic.blogspot.com/">Fan Fic</a> <a class="menu" href="http://thematrixanime.proboards.com">Forum</a> <a class="menu" href="http://www.matrixanime.net/p/contact.html">Contact</a></div> Dear forums! I'm having issue with an padding-problem which i'm not able to solve on my own. I don't understand why my code returns the problems that it does, but it for some reason does. Okay, what is the problem? I've drawn them into this picture; http://i42.tinypic.com/4v1veo.png The problem is that the first navigation-button starts off with about 10-15 pixels, and ends about 3 pixels out of the actual navbar (if you check the borders). I would like to remove this, so that the navbar button covers the whole area of the navbar div / element, without starting too late or ending too late. CSS code can be found here; http://www.myhrensolutions.net/tolkf...sign/index.css the HTML-code can be viewed here; http://www.myhrensolutions.net/tolkfirma/tjenester.html All help is muchly appriciated, thank you! - Scott. ok, ive tested this several ways and im stuck, ive coded the PHP navbar pretty much the same as the HTML version of my site.. but in th PHP page it wont show. I think the sprite is confliction in some way, dont see a way to put my finger on it: It concers this page, the red square. the whole Navbar: Code: <ul id="navigation"> <!-- SVIB ww / er --> <li><a style="background-image:url('img/nav/4back.png'); width:81px; height:80px; position:relative; border:solid 2px red;" id="bol_4" href="?page_id=2">back</a></li> <li><a id="bol_1" href="?page_id=187">1</a></li> <li><a id="bol_2" href="?page_id=189">2</a></li> <li><a id="inloggen" href="inloggen.php">3</a></li> <li><a id="bol_3" href="?page_id=55">4</a></li> </ul> and the CSS, which is pretty important in finding the error i believe: Code: #navigation { padding:0; margin:0; list-style-type:none; margin-top:-511px; margin-left:560px; } #navigation a { display:block; width:131px; height:128px; background-image:url(../img/nav/svib_compleet_sprite.png); text-indent:-9999px; outline:none; } /*TERUG*/ #bol_4 { width:40px; height:81px; position:relative; top:4px; left:4px; border:0; } #bol_4:hover {background-position:81px 0;} |