Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...