isreal63 Posted February 8, 2008 Share Posted February 8, 2008 i have been having a hard time getting a image on my navigation bar what is the coding for it?thank youisreal63 Link to comment Share on other sites More sharing options...
S@m Posted February 8, 2008 Share Posted February 8, 2008 The code is:Tango Bravo Zebra.Really though we need a bit more info. What is your image? What is your "nav bar"? What are you trying to do exactly? Link to comment Share on other sites More sharing options...
isreal63 Posted February 9, 2008 Author Share Posted February 9, 2008 in the background of all the links in the nav bar i want to put a image but i don't know the code Link to comment Share on other sites More sharing options...
jeffman Posted February 9, 2008 Share Posted February 9, 2008 Still not sure what you want, but here are some possibilities:1. If you want a single image in the whole navbar, your HTML looks like this: <div class='myNavbar'> And your CSS looks like this: div.myNavbar{background-image: url('bgNavbar.gif'); background-repeat: no-repeat;} 2. If you want a unique image behind each link, it might look like this. HTML: <div class='myNavbar'> <div class='navHome'> <a href='whatever'> home </a> </div> <div class='navCredits'> <a href='whatever'> credits </a> </div> </div> And your CSS: div.navHome{background-image: url('bgNavHome.gif'); background-repeat: no-repeat;} div.navCredits{background-image: url('bgNavCredits.gif'); background-repeat: no-repeat;} I hope something here answers your question. It might simply be easier to use images as your links, for example, which might look like this: <img src='whatever' onclick='whatever'><img . . . Link to comment Share on other sites More sharing options...
Synook Posted February 10, 2008 Share Posted February 10, 2008 What is the code for your current navbar? Link to comment Share on other sites More sharing options...
isreal63 Posted February 12, 2008 Author Share Posted February 12, 2008 Still not sure what you want, but here are some possibilities:1. If you want a single image in the whole navbar, your HTML looks like this:<div class='myNavbar'> And your CSS looks like this: div.myNavbar{background-image: url('bgNavbar.gif'); background-repeat: no-repeat;} 2. If you want a unique image behind each link, it might look like this. HTML: <div class='myNavbar'> <div class='navHome'> <a href='whatever'> home </a> </div> <div class='navCredits'> <a href='whatever'> credits </a> </div> </div> And your CSS: div.navHome{background-image: url('bgNavHome.gif'); background-repeat: no-repeat;} div.navCredits{background-image: url('bgNavCredits.gif'); background-repeat: no-repeat;} I hope something here answers your question. It might simply be easier to use images as your links, for example, which might look like this: <img src='whatever' onclick='whatever'><img . . . the image url means on my computer or from a website cuz on my computer it donsn't seem to work Link to comment Share on other sites More sharing options...
Norman Posted February 12, 2008 Share Posted February 12, 2008 If you have your images on a folder called /images, for example, it will be like this: div.navHome{background-image: url('images/bgNavHome.gif'); background-repeat: no-repeat;} div.navCredits{background-image: url('images/bgNavCredits.gif'); background-repeat: no-repeat;} images/imagename.gif/or what Link to comment Share on other sites More sharing options...
isreal63 Posted February 13, 2008 Author Share Posted February 13, 2008 If you have your images on a folder called /images, for example, it will be like this:div.navHome{background-image: url('images/bgNavHome.gif'); background-repeat: no-repeat;} div.navCredits{background-image: url('images/bgNavCredits.gif'); background-repeat: no-repeat;} images/imagename.gif/or what thank youisreal63 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.