Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > CSS
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old May 26, 2006, 08:42   #1
obrienkev
SitePoint Wizard
 
Join Date: Apr 2004
Location: dublin
Posts: 2,044
Image Map Menu

Hi all,

I want to use images to replace my text menu links.

Problem is how to get each image to fit correctly?

Any ideas? Don't have url yet. sorry.

Code:
 <style type="text/css">
 <!--
 
 #book { 
   background: #ccc;
   height: 300px;
   width: 196px;
   }
 
 ul#menu li {
 			list-style: none;
 }	
 
 	
 ul#menu li a {
 	font-size: 1.5em;
 		 font-stretch: ultra-expanded; 
 	  text-decoration: none;
 }
 	
 ul#menu li a i { visibility: hidden; }
 
 
 a.home { background-image: url('images/home.gif'); }
 a.contact { background-image: url('images/contact.gif'); }
 a.test { background-image: url('images/test.gif'); }
 
 a.home:hover { background-image: url('images/home_on.gif'); }
 a.contact:hover { background-image: url('images/contact_on.gif'); }
 a.test:hover { background-image: url('images/test_on.gif'); }
 
 -->
 </style>
 
 </head>
 
 <body>
 
 <div id="book">
 
  <ul id="menu">
   <li><a href="" class="home"><i>home</i></a><li>
 	<li><a href="" class="contact"><i>contact</i></a><li>
 	<li><a href="" class="test"><i>test</i></a><li>
  </ul>
 
 </div>
obrienkev is offline   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 00:39.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved