kirsiskaspars Posted January 31, 2012 Report Posted January 31, 2012 Hello! I'm having a problem. I want to make a navigation bar which consist of images. Navigation sprite is something a little bit different. It is not what I need I have a couple of images which I want to make as a navigation list. How can I do that? Is it possible just using CSS? Thank you.
Andrea Posted January 31, 2012 Report Posted January 31, 2012 You can just make the images links, or you can use them as background images. <ul> <li><a href="link1.html"><img src="image1.jpg"></a></li> <li><a href="link2.html"><img src="image2.jpg"></a></li> </ul> However, it all you have as navigation are those images, then keep in mind that whoever cannot display/see images, has no navigation.
benjaminmorgan Posted January 31, 2012 Report Posted January 31, 2012 And to add on to Andrea, if you put them as background images you can also put a colored background just in case. a { background: #00FF00 url('image/urlhere'); } That way if the image doesn't show the background color still will.
kirsiskaspars Posted January 31, 2012 Author Report Posted January 31, 2012 Didn't think it was so easy. Thank you!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now