reality-escape/blog

css portfolio art personal blog tutorials

How to make a image navigation

Always wand to know how to make a navigation with images?
I will tell you how I made my top navigation in the layout I have know
Hope you learn something from this tutorial
Ofcours you can change and leave out things to suit your needs
Feel free to share your tips so we can help each other

Step 1

First I made the images I wand to replace my text link
After that I made a DIV named TOPNAV
and in that a LIST

topnav ul

the first ID TOPNAV will function as a wrapper to keep it all inside
and to place it where you wand

look at my CSS

topnav css

Step 2

Know we look at this piece of code topnav id
I have given the normal topnav li an id so we can ad one image to this link
Now were getting somewhere

Were going back to the CSS

topnav css 2

Step 3

Repeat step 2 for all the links you have
That’s it
If you have questions feel free to comment on this post

4 Responses to “How to make a image navigation”

  1. Christopher Says:

    This is an OK way to get an image navigation, but it requires the browser to load separate images, which means that when you hover over the link, the picture disappears for a second while the browser loads the hover picture.

    This is especially annoying if you’re running on a slow computer, because it can take a long time to see the hover effect.

    A better way would be to use sprites. That is, make the image have 2 images, the regular and the hover, and set the image as a specified background, cutting out the height or width of the hover image. Then, just use CSS to move the background (background-position) so that the hover image is displayed.

    It’s a little more complicated, but it doesn’t have the blank image. You can see this effect in action on enveere.org, webdesignerwall.com, and others. There’s a tutorial on webdesigerwall.com on how to design and code this type of menu.

  2. admin / Danielle Says:

    Thank you for the comment
    I will look for more info on the links you gave me

    greetings danielle

  3. Taufik A Hadinata Says:

    Great jobs, keep be an artist…. give your spirit to make this world more colorful by the beautifulness. Wish i know u better.

  4. Austin Says:

    I was going to suggest the sprits, but looks like Danielle already suggested it. I use it on my site as well!

Leave a Reply

Recent Post

Sites that i love

Makes my heart beat faster

A Fine Frenzy-One Cell In the Sea Kooks-Inside In/Inside Out Rent (1996 Original Broadway Cast)

Twilight -by Stephenie Meyer The Witching Hour-by Anne Rice Mister Monday-by Garth Nix

See what i enjoy more