Jump to content
MakeWebGames

Need a new mainmenu.php with images for links! Will pay $$$


youngbuck

Recommended Posts

@ html level

<ul class="main-menu">
<li class="one"><a href="#">Link 1</a></li>
<li class="two"><a href="#">Link 2</a></li>
<li class="three"><a href="#">Link 3</a></li>
...
</ul>

@ css level

.main-menu { /* to suit */ }
.main-menu li { /* to suit */ }
.main-menu li.one { background:url('one.png') 0 0 no-repeat; }
.main-menu li.two { background:url('two.png') 0 0 no-repeat; }
.main-menu li.three { background:url('three.png') 0 0 no-repeat; }

Experienced required: next to none.

Graphical skills needed: next to none

Ability to copy and paste: handy

Having a clue: important

Link to comment
Share on other sites

Background images with text reduce the ability to use translations or dynamic text, (though the latter is far from complex as you can see), however on the flip-side of the coin, raw text may not render the same across browsers. Using list-style-type:url may be viable, as can spans wrapping the anchors or in some cases I've no doubt that pure CSS is all that is needed.

With the OP's carefully considered and elegantly worded opening salvo; I went for the low-hanging fruit. Personally, I'll stick to CSS3 classed <li>'s.

Link to comment
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.

Guest
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.

×
×
  • Create New...