Forum Moderators: not2easy

Message Too Old, No Replies

Irregular Menu Design

         

40b1t

2:27 am on Jun 28, 2009 (gmt 0)

10+ Year Member



Hello. Im having trouble getting this design to work while hosted. Although the following code does work when localy run off my box. Now that Im trying to run it on a host the menu imagery gets all scrambled.

I cant show what "JPGM2.jpg" looks like since we cant post links. But if you google search "Image slicings kiss of death+irregular shapes" you should be able to come up with another fine example of what Im working towards. Although if in some way I am able to divulge a location of the real image id be glad to in order to get a real result in solving this.

Any help would be greatly appreciated.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"

lang="en">

<head>
<title>Web Concept</title>
<meta http-equiv="Content-Type" content="text/html;

charset=UTF-8" />

<style type="text/css">

* {
margin: 0;
padding: 0;
}

body
{
background-image:url(bg8b.jpg);
background-repeat: no-repeat;
overflow: hidden;
}

#container
{
width: 1280px;
height: 338px;
}

#menu
{
width: 1280px;
height: 338px;
background: url(JPGM2.jpg);
margin: 0;
padding: 0;
position: absolute;
left: 0px;
top: 331px;
overflow: hidden;
}

#menu li
{
margin: 0;
padding: 0;
list-style: none;
display: block;
position: absolute;
text-indent: -9999px;
overflow: hidden;
}

#menu a {display: block;}

#Photos {left: 90px; top: 3px; width: 351px; height: 88px;}
#Home {left: 0px; top: 93px; width: 330px; height: 137px;}
#Career {left: 440px; top: 146px; width: 394px; height:

189px;}
#About {left: 746px; top: 26px; width: 358px; height: 78px;}
#Pools {left: 227px; top: 47px; width: 372px; height: 150px;}
#Fountains {left: 769px; top: 100px; width: 447px; height:

161px;}
#Spas {left: 534px; top: 45px; width: 326px; height: 114px;}
#Contact {left: 1033px; top: 90px; width: 247px; height:

135px;}

#Photos a {height: 88px;}
#Home a {height: 137px;}
#Career a {height: 189px;}
#About a {height: 78px;}
#Pools a {height: 150px;}
#Fountains a {height: 161px;}
#Spas a {height: 114px;}
#Contact a {height: 135px;}

#Photos a:hover {background: url(JPGM2.jpg) -90px -341px

no-repeat;}
#Home a:hover {background: url(JPGM2.jpg) -0px -431px

no-repeat;}
#Career a:hover {background: url(JPGM2.jpg) -440px -484px

no-repeat;}
#About a:hover {background: url(JPGM2.jpg) -746px -364px

no-repeat;}
#Pools a:hover {background: url(JPGM2.jpg) -227px -723px

no-repeat;}
#Fountains a:hover {background: url(JPGM2.jpg) -769px -776px

no-repeat;}
#Spas a:hover {background: url(JPGM2.jpg) -534px -1059px

no-repeat;}
#Contact a:hover {background: url(JPGM2.jpg) -1033px -1104px

no-repeat;}

</style>
</head>

<body>

<div id= "container">

<ul id="menu">
<li id="Photos"><a href="Photos.html">Photos</a></li>
<li id="Home"><a href="Home.html">Home</a></li>
<li id="Career"><a href="Career.html">Career</a></li>
<li id="About"><a href="About.html">About</a></li>
<li id="Pools"><a href="Pools.html">Pools</a></li>
<li id="Fountains"><a ref="Fountains.html">Fountains</a></li>
<li id="Spas"><a href="Spas.html">Spas</a></li>
<li id="Contact"><a href="Contact.html">Contact</a></li>
</ul>

</div>

</body>
</html>

oluoch28394

4:09 pm on Jun 28, 2009 (gmt 0)

10+ Year Member



your posistionings are weird im no expert but why do you use things like:
text-indent: -9999px;
background: url(JPGM2.jpg) -90px -341px
background: url(JPGM2.jpg) -0px -431px
background: url(JPGM2.jpg) -440px -484px
and so on.