Jump to content
Stef's Coding Community
Sign in to follow this  

Navigation Bar with images

Recommended Posts



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.

Share this post

Link to post
Share on other sites

You can just make the images links, or you can use them as background images.

<li><a href="link1.html"><img src="image1.jpg"></a></li>
<li><a href="link2.html"><img src="image2.jpg"></a></li>


However, it all you have as navigation are those images, then keep in mind that whoever cannot display/see images, has no navigation.

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...