The simple ul li css SEO friendly horizontal menu
In this part we will use ul li css code some simple but usefull seo friendly menu.First let’s start with a Horizontal Menu with rollover image . we will use images,but most important is we need make it seo friendly.
ul li css SEO friendly simple horizontal menu
We need prepare 2 images. one for normal menu background while another for hover & current menu background.That’s all , very simple . Let’s look the HTML codes frame:
<div id="navs"> <ul> <li><img alt='Home' src='images/normalbg.jpg' /><a href=''>Home</a></li> <li><img alt='Portfolio' src='images/normalbg.jpg' /><a href=''>Portfolio</a></li> <li><img alt='Services' src='images/normalbg.jpg' /><a href=''>Services</a></li> <li><img alt='Projects' src='images/normalbg.jpg' /><a href=''>Projects</a></li> <li><img alt='Articles' src='images/normalbg.jpg' /><a href=''>Articles</a></li> <li><img alt='Contact' src='images/normalbg.jpg' /><a href=''>Contact</a></li> </ul> </div>
Related css codes:
#navs ul { margin:0px; padding:0px; } #navs ul li { float:left; display:inline-block; list-style:none; height:46px; position:relative; background:url(images/menuover.jpg) repeat-x left top; } #navs ul li a { position:absolute; display:block; line-height:46px; height:46px; width:131px; text-align:center; left:0px; top:0px; text-decoration:none; color:#1F1E1E; } #navs ul li:hover img { visibility:hidden; }
Click here to see the live demo .
IE6 below Issue
If you have IE6 , You may noticed that this menu rollover image function not work in IE6 and below .
What’s the solution:
We need use Third-party approach : The csshover3.htc . Add it to the same folder of css , then add this line “behavior: url(“csshover3.htc”);” to #navs ul li .So it should like this :
#navs ul li { float:left; display:inline-block; list-style:none; height:46px; position:relative; behavior: url("csshover3.htc"); background:url(images/menuover.jpg) repeat-x left top; }
But this cause a inssue : the css can’t pass w3c valid .i tried many ways , but didn’t figure it out. if someone have a more good solution,please let me know. Click here to see the final version .DownLoad HERE .
, I'm a freelancer and available now,if need help just contact me without hesitation.
7 Responses to “The simple ul li css SEO friendly horizontal menu”
Leave a Reply
-
Search for:
-
Sponsor
Categories
- apache (2)
- css xhtml (10)
- html5 (1)
- javascript (3)
- jquery (5)
- magento (3)
- mysql (1)
- php (1)
- SEO Friendly (6)
- Tools (3)
- w3c validation (4)
- Wordpress (4)


















[...] . So next lession we will introduce the ul li css seo fridenly menu . Click here to go directly: The simple ul li css SEO friendly horizontal menu And ul li css none-js SEO friendly [...]
You have tested it and writing form your personal experience or you find some information online?
of course for personal experience . i rip it from one of my projects . In fact , thats the client idea , He is very good at SEO and make you top one in google .
Not bad article, but I really miss that you didn’t express your opinion, but ok you just have different approach
i came across, cute website
You make this to complicated! I don’t know if I can post code in your comment box, so here all files with a working version to all browsers: http://rapidshare.com/files/396103288/simplemenu.rar.html
You don’t need to put all extra code image in your “li”, just one image in css make the rollover, and no “absolute position”. I just forget to put “title” attribute for the href in my example (SEO
)
Another note for css: when you get “0″ it’s “0″ no need to put “px”.
And final: just find your site with a link on another site for jQuery and I think to use your nice jquery content slider. Great plugin, thanks. And I hope you update your ajax form!
thanks for you advise, i know the tips but for my bad photoshop skill i only can cut to 2 images from the psd. thanks for this notes too when you get “0″ it’s “0″ no need to put “px”. just a little busy those days i will update and upload new jquery plugins ,thanks again