-1

hi my navigaion keeps on moving onto a new line and i cant seem to stop it. i have tried all that i can think of.

thanks

[CODE]
body{
height:100%;
width: 150%;
margin:0;
}

nav{

clear:both;
font-weight:bold;
color:black;
margin-left:4px;
float:left;
list-style-type:none;
background:url(navshadow.gif) no-repeat 8px 100% #fff;
width:100;
padding-bottom:21px;
position:absolute;
left:15%;

}
html>body #nav{
margin-left:8px;
background:url(navshadow.gif) no-repeat <strong>4px</strong> 100% #fff;
}

nav li{

list-style-type:none;
float:left;
margin:0 0 0 4px;
padding:0 0 0 10px ;
border-bottom:1px solid #999;
background:url(tabgrey.png) #c0c0c0 top left no-repeat;

}

nav li a{

color:black;
background:url(tabgrey.png) transparent top right no-repeat;
display:block;
padding:0 10px 0 0;
float:left;

}

nav li.cur,

nav li.over,

nav li:hover

{
background:url(tabblue.gif) #3c785c top left no-repeat;
border-bottom:1px solid #2c6b2c;
}

nav li strong,

ul#nav li.cur a,
ul#nav li.over a,
ul#nav li:hover a
{
display:block;
color:#fff;
padding:0 10px 0 0;
text-decoration:none;
background:url(tabblue.png) transparent top right no-repeat;
}

</style>
<script type="text/javascript">
/<![CDATA[//---->/

function rollover()
{
if(!document.getElementById || !document.createTextNode){return;}
var n=document.getElementById('nav');
if(!n){return;}
var lis=n.getElementsByTagName('li');
for (var i=0;i<lis.length;i++)
{
lis[i].onmouseover=function()
{
this.className=this.className?'cur':'over';
}
lis[i].onmouseout=function()
{
this.className=this.className=='cur'?'cur':'';
}
}
}
window.onload=rollover;

/--//]]>/
</script>

</head>
<body>

<img src="logo.jpg" width="40%" />

<ul id="nav">
<li class="cur"><strong>About jjjjjjjjjjjjjjjjjUs</strong></li>
<li><a href="index.html">Garden Centre</a></li>
<li><a href="step2.html">Dahlias Kitchen</a></li>
<li><a href="step3.html">Kool Kamping</a></li>
<li><a href="step4.html"></a>Pets Corner</li>
<li><a href="step4.html"></a>Suttons Buildings</li>
</ul>

[/CODE]

Votes + Comments
this is for runing away with the solution never marking thread as solved!
-1

hi i am following this etutorial and the code is not working and dont get why. There are two bits of code:

[CODE]

<body>
<?
$sonnet76 = <<<HERE
Sonnet # 76, William Shakespeare

Why is my verse so barren of new bride,
And keep invention in a noted weed,
HERE;

$fp = fopen("sonnet76.txt", "w");
fputs($fp, $sonnet76);
fclose($fp);

?>

[/CODE]
When i click this file i get permision denied and it wont write even thou i have allowed all the permisions.

[CODE]

<body>
<?
$fp = fopen("saveSonnet.php", "r");

//first line is title
$line = fgets($fp);
print "<center><h1>$line</h1></center>\n";

print "<center>\n";
//print rest of sonnet
while (!feof($fp)){
$line = fgets($fp);
print "$line <br>\n";
}

print "</center>\n";

fclose($fp);
?>
[/CODE]
This code returns the other except it does not show the code it is all hidden. Thanks you could give me any information about what is happening and if i am doing it wrong.