HTML - Css + Html Navigation Unter Den 3 Bildern
Similar TutorialsI guess the first thing to do is give you a link to my site: http://theinstinct.net. Now if you notice, on the left hand side we have a Navigation Bar and a few other small things. Lately we've (myself and a friend work on the site) been editing and updating it a lot and we realized that we'd have to make the same changes on every single page. So my question for you is, is there a way to execute a separate HTML file inside another? Like you can link to a CSS file or to a JavaScript file, can you do that with an HTML file? Thanks for the help! Impossible right? Wrong. Or at least in mozilla firefox. I was playing around and came up with this: HTML Code: <style type="text/css"> .nav{ width: 150px; height: 400px; border: 1px solid #222222; background: #151515; color: #bb55ff; font-family: tahoma; font-size: 8pt;} .blank{ background-color: #000000; height:12;} .nav ul{ height: 12px; padding: 0px; text-align: right; overflow: hidden; background-color: #000000; border: 1px solid #222222;} .nav ul:hover{ padding: 5px; height: auto; text-align: left; overflow: visible; background-color: #000000; border: 1px solid #222222;} .nav li{ list-style-image: none; background-color: #151515; border: 1px solid #222222;} .nav li:hover{ list-style-image: none; background-color: #000000; border: 1px solid #222222;} </style> <div class=nav> <ul> <div class=blank>Site Nav</div> <li><a href="#top">Top</a></li> <li><a href="#news">News</a></li> <li><a href="#notice">Notice</a></li> <li><a href="#friends">Friends</a></li> <li><a href="#friends-form">Signup</a></li> <li><a href="#likes">Likes</a></li> <li><a href="#dislikes">Dislikes</a></li> <li><a href="#music">Music</a></li> <li><a href="#css">Layouts</a></li> </ul> <ul> <div class=blank>Links</div> <li><a href="/journal.php?u=Techie-ish">Journal</li> <li><a href="/gallery.php?u=Techie-ish">Gallery</a></li> <li><a href="http://quinn.1429caddo.net">Homepage</a></li> <li><a href="http://quinn.1429caddo.net/poetry.htm">Poetry</a></li> <li><a href="http://www.myspace.com/staining_in_the_rain">Myspace</a></li> </ul> <ul> <div class=blank>VF Nav</div> <li><a href='/inbox.php'>Inbox</a></li> <li><a href='/comments.php'>Comments</a></li> <li><a href='/view_pic_comments.php'>Pic Comments</a></li> <li><a href='/journal.php'>Journal</a></li> <li><a href='/edituser.php'>Profile</a></li> <li><a href='/editsettings.php'>Settings</a></li> <li><a href='/editpictures.php'>Pictures</a></li> <li><a href='/video/editvideos.php'>Videos</a></li> <li><a href='/editicons.php'>Icons</a></li> <li><a href='/edit_lists.php'>Lists</a></li> <li><a href='/group_mine.php'>Cults</a></li> <li><a href='/login.php?logout=1&c=a066e0f3'>Logout</a></li> </ul> </div> it doesnt work in internet explorer can someone tell me why? Hi , Ive got the following html for a site nav bar. I want to shorten the width of the bar by breaking up the two word sections into one column.....i.e About Us would read as.... About Us The section 'Full time' would become Full time This is the html I have - I'm guessing that I may have to create a table? Any advice on this would be gratefully received! The html for the navigation bar is........ <a class=topmenu href="blank.html" target="" tab="0" pid="212" runat="server">About Myeloma</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html">About Us</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="959" runat="server">Teams/players</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="970" runat="server">Professional footballers</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="976" runat="server">Venue</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="974" runat="server">Fixtures</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="978" runat="server">Full time</a><span style="COLOR: #c4c7c8"> | </span> <a class=topmenu href="blank.html" target="" tab="0" pid="975" runat="server">News</a> Hey guys, EDIT: I figured it out. There was a phantom image that I had between the two that no longer belongs. Nevermind! Thanks, ~C-Style~ please help. i used html <object> tag and i embeded a .swf flash file inside my html page... everything worked great until here.... now i want to let the visitor of my page to be able to navigate through my .swf file through my own navigation bar buttons that i want to put above the .swf file... i want my visitor to be able to press the avigation bar buttons to play and stop and forward and backward and rewind and so on... i dont want my visitor to press the right mouse button when he over the flash object to navigate i want to have my own navigation static bar above the flash.... what solutions there is to this problem....? what is the best solution ? best regards. Hi, I know basic html and I am trying to make a simple website for myself. I just can't get the navigation bar at the top of the page to display correctly. Look he pacificnewsnow.com/index2.htm I want to get the 2nd line of the navigation right under the 1st one. I've tried a table and it comes out like this: http://pacificnewsnow.com/index3.htm (The image for the 2 line of the nav bar will be different, but for now, it's just the same.) So, for a professional example of what I'm looking to do, look at this website: katu.com Thank you! Hi there, I am currently working on a website for the school I work at. The website requires a drop down menu that has some submenus to it. Since the site it going to be rather large, I decided to create a div for the navbar where I would use an SSI file. This would allow me to change the navbar in one place rather than on 25 pages. I have created the navbar in Fireworks, and have set up the properties for each button. I have altered the paths to the images so that they appear properly (see http://www.prestigeinteractive.com/wmems2/index.shtml ), I place the references to the js and css file in the shtml file where the menu is loaded and the paths are correct to the best of my knowledge. The problem I am facing is when the page is viewed, the drop down menu appears fifty or so pixels above where they should appear. I am not sure if I've done this correctly. Please view my work at http://www.prestigeinteractive.com/wmems2/index.shtml The files have been uploaded to this thread, as they are too long to cut and paste. Thanks for any help you can give. Greg Hi im currently re designing my site and would like a navigation bar similar to the one at http://spundoogle.com/skyserpent/GoogleX/ i just dont know where to begin though please help hi guys, I am creating a site and i want to have sub navigation. here is a link to what i got so far http://renttheweb.com/cah/ and here is the code Code: #sidebar { float: left; width: 225px; background-color:#ffffff; } #sidebar ul { margin:0; padding:0; list-style:none; } #sidebar ul ul { margin:1em 0; padding:0 1em; } #sidebar ul ul ul { margin:0.3em 0; padding:0 0.5em; } #sidebar form { margin:1em 0; padding:0 1em; } #sidebar h2 { margin:0; padding:0; font-size:1.1em; } i got the sub nav working but i want it hidden until the parent link is clicked and then it will expand and show the sub pages under that link. any ideas? CC_DESIGN I initially had my website on freewebs.com, and used the code <!--#include virtual="/nav.shtml" --> for the navigation on each html page. I've now found a host and am trying to transfer all the pages over, however I can't seem to get the navigation sorted. The navigation should be on the left of this page - http://broadcast.tcg-publicity.org/about.html I really don't know why it's not working, as I haven't changed anything or edited any of the files. And the files are definitely in the right folder. This is the current index, and you can see that the correct file is there - http://broadcast.tcg-publicity.org/ Does anyone know what could be wrong?? Hi people, I'm taking care of my web site but I would like to improve it with your help as I'm a bit of an ignorant with html and stuff. The navigation bar I've created is actually not a real navigation bar I believe. Every time you change page the bar reloads with the new page, you know what I mean? See for yourself http://www.clorinde.org/clorinde/index.htm How can I fix this so the loading of the pafe would be smoother and faster? Would you be able to provide me some codes? Thanks! So with some trial and error (and much help from the topics on this forum) I figured out how to make my navigation bar static throughout my templates. But now I have another problem, I'm not sure how to add another link to it.. Not successfully at least. I can add another menu, but either it won't go on the bar, or it will force another link off and it will be below the bar. I used This to make my bar, but the site doesn't seem to be working right now. If that isn't good to use, would someone be so kind to recommend a good free\cheap one? Also, I am using Kompozer and have little experience with any of this.. So any help is greatly appreciated. (BTW, sorry if this is the wrong section.) I was wondering how i could do a navigation like this one with out using flash. I dont know java but only html. Please can someone help me? Here is what im looking for: http://nexon.net I just need the navigation part. Howdy, I have a navigation bar at the top of every page on a website. This nav bar contains several links, and they are the same on each page. The problem is, the urls they reference often need to be changed. And editing a bunch of documents every time this happens seems like needless work. Is there a way I can make the links in this nav bar reference some CSS document or some such thing, which contains the actual links? Thanks for your time, - A noobie. Im currently working on a site offline but i want to have it when you hover over the navigation it switches to an image! Let Me Explain I made buttons in photoshop but when you hover over them i want it to change to another image! im going to give you an example! this is before i hover over my navigation this is what i want it to change to when i hover over it! thanks in advance! Can someone please tell me how to make the navigation and the line right to the right of the navigation as seen here on this site: http://www.girlsnightoutmusic.com/ Thanks! I built a nice little tabbed navigation and it works great in firefox and safari and displays perfectly fine in IE 6 but for some reasons my rollovers don't work. I'm not too sure as to why, everything seems fine to me... but apparently not to Internet Explorer. I've attached my code below and you can see an example of the nav here. (I don't have IE7 installed so if someone can take a look at it in that and let me know if it works or not that would be awesome!) Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!--[if IE]><link rel="stylesheet" media="screen" type="text/css" href="css/htc.css" /><![endif]--> <style type="text/css" media="screen"> * { margin: 0; padding: 0; } body { background: #999; } #tab_wrap { width: 328px; background: #fff; } #tab_wrap h1 { margin: 0 0 1px 0; width: 328px; height: 37px; background: #44c2fd url(images/header_reviews.png) no-repeat 0 0; text-indent: -2800px; } #tab_wrap ul { width: 328px; height: 31px; list-style-type: none; } #tab_wrap ul li { display: block; float: left; } #tab_wrap a { display: block; width: 55px; height: 31px; text-indent: -2800px; } #tab_wrap a:hover { background-position: 0 -31px; } #tab_wrap a.last { width: 53px; } #tab_wrap a.current { background-position: 0 -31px; } #music { background: #44c2fd url(images/tab_nav_music.png) no-repeat 0 0; } #film { background: #44c2fd url(images/tab_nav_film.png) no-repeat 0 0; } #dvd { background: #44c2fd url(images/tab_nav_dvd.png) no-repeat 0 0; } #media { background: #44c2fd url(images/tab_nav_media.png) no-repeat 0 0; } #games { background: #44c2fd url(images/tab_nav_games.png) no-repeat 0 0; } #gear { background: #44c2fd url(images/tab_nav_gear.png) no-repeat 0 0; } </style> </head> <body> <div id="tab_wrap"> <h1>Reviews</h1> <ul> <li><a id="music" class="current" title="Music Reviews">Music</a></li> <li><a href="#" id="film" title="Film Reviews">Film</a></li> <li><a href="#" id="dvd" title="DVD Reviews">DVD</a></li> <li><a href="#" id="media" title="Media Reviews">Media</a></li> <li><a href="#" id="games" title="Games Reviews">Games</a></li> <li><a href="#" id="gear" class="last" title="Gear Reviews">Gear</a></li> </ul> </div> </body> </html> I am new to html and web designing. I have an idea for a Navigation Bar but I do not know if its possible or if its been done before. My idea is for a horizontal Nav Bar with a green background. As the visitor puts his or her cursor over the link, a lightning bolt appears from the left side and extends to the right to where the cursor is located. When the cursor moves to the links on the right side it extends, and to the left it retracts. The lightning design will be above the green background but behind the text of the link. Has this ever been done before, if so where can I find it? If not, how can I make one just like it? Are there any navigation generators or 3rd party applications that have pre-set options to allow this as well? Basicly, the problem is when you resize the window to the site, the navigation bar moves frome the place it is suppose to be, and stretches; this throws off the whole layout of the site when the window is resized by anyone(it needs to stay in with the background but it's not) Any help will be great!!!!! I've been trying to move the top navigation on this website I'm creating for a restaurant, but it won't move right. Here is the index page: http://www.organicgardencafe.com/web...02-3-2010.html and the css: #color1 a:link{ color:#03F; text-decoration:none; font-weight:normal; } #color1 a:visited { color:#03F; text-decoration:none; font-weight:normal; } #color1 a:hover {color:#39F; text-decoration:none; font-weight:normal;} #color1 a:active {color:#03F; font-weight:normal; } #color2 a:link{ color:#FFF; text-decoration:none; font-weight:normal; } #color2 a:visited { color:#FFF; text-decoration:none; font-weight:normal; } #color2 a:hover {color:#e4cb54; text-decoration:none; font-weight:normal;} #color2 a:active {color:#FFF; font-weight:normal; } body{ background-color:#e4cb54; } div.temp{ background-position: center top; background-image:url(images/blanktemplate.jpg); background-repeat:no-repeat; height:960px; width:1440px; } navigation bar --!> li.home{ margin-left:100px; } li.about{ margin-left:38px; } li.menu{ margin-left:40px; } li.knowledge{ margin-left:38px; } li.ordering{ margin-left:36px; } li.classes{ margin-left:40px; } li.press{ margin-left:28px; } #major_nav ul li { float:left; display:inline; font-family:Helvetica; font-size:16px; color:#FFF; ; } #major_nav ul { margin-left: 200px; margin-top:10px; width:900px; } #news ul li a{ list-style-type:none; } #mission{ font-family:Helvetica; font-size:13px; float:right; width: 230px; height:300px; clear:left; margin-right:12px; text-align:justify center; margin-top:35px; } #pictures{ margin-right:185px; margin-left:10px; float:right; clear:both; width:503px; margin-top:98px; } #whatsnew{ float:right; width: 50px; clear:left; margin-top:115px; margin-right:20px; } #new1{ float:right; clear:left; margin-right:10px; margin-left:50px; margin-top:115px; } #new2{ float:right; clear:both; margin-right:260px; margin-left:10px; margin-top:115px; } div.newsletter{ font-family:Arial Narrow Normal, sans-serif; color:#404e3e; font-size:24px; margin-left:280px; margin-top:140px; margin-bottom:0px; } li.follow{ font-family:Arial Narrow Normal, sans-serif; color:#404e3e; font-size:24px; margin-left:238px; margin-top:20px; margin-bottom:0px; } div.giftcards{ font-family:Arial Narrow Normal, sans-serif; color:#404e3e; font-size:20px; margin-left:275px; } div.info{ font-family: Helvetica; font-size:14px; color:#FFF; margin-left:275px; margin-top:5px; } div.boston{ margin-left:270px; } .blue{ color:#039; font-size:17px; text-align:center; } .new_sub1{ display:inline; font-family:Helvetica; font-size:20px; color:#10155d; margin-bottom:10px; } .new_sub2{ display:inline; font-family:Helvetica; font-size:14px; } .new_sub3{ display:inline; font-family:Helvetica; font-size:13px; } .email_list{ list-style-type:none; margin-left:240px; } .email_sub1{ font-family:Helvetica; font-size:14px; margin-top:0px; } .email_sub2{ font-family: ; font-size:14px; margin-top:10px; } .email_sub3{ font-family: Helvetica; font-size:14px; color:#FFF; margin-top:7px; margin-bottom:40px; } .new2_sub1{ display:inline; font-family:Helvetica; font-size:20px; color:#10155d; } .new2_sub2{ font-size:13px; font-family:Helvetica; margin-top:20px; list-style-type:circle; margin-left:15px; } .new2_sub3{ display:inline; font-family:Helvetica; font-size:13px; margin-left:18px; } .adress{ text-align:center; color:#404e3e; margin-top:40px; margin-right:450px; float:right; clear:both; } |