<div id="guidetownhall">
<?php
if(isset($_GET['townhall']))
{
$bypassguides = 1;
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
}
?>
</div>
THis is the screen shot: (when i put the cursor over the scroll is not what its supposed to be. it becomes the cursor when you are supposed to type text in.)
Try experimenting with different overflow options - overflow:hidden, overflow:scroll, etc. That's the only thing I can think of. When it comes to CSS sometimes you just gotta experiment. Download web developer toolbar or firebug, that way you can edit CSS on the fly, see the changes, and then apply them when you get something that works.
Print returns a Boolean value, and echo doesn't. This makes echo slightly faster and is the preferred method unless you need the true/false value for something.
Can you post the full style sheet? I'm not sure what's wrong just yet, I'd have to see the rest of the code.
<?php
include_once 'maintemplate.php';
?>
<link href="maintemplate.css" rel="stylesheet" type="text/css" />
<div id="guidetownhall">
<?php
if(isset($_GET['townhall']))
{
$bypassguides = 1;
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
print "Here will be info about the town hall."."<br/>";
}
?>
</div>
<?php
if(isset($_GET['warehouse']))
{
$bypassguides = 1;
print "Here will be info about the warehouse.";
}
?>
<?php
if(isset($_GET['mill']))
{
$bypassguides = 1;
print "Here will be info about the mill.";
}
?>
<?php
if(isset($_GET['house']))
{
$bypassguides = 1;
print "Here will be info about the house.";
}
?>
<?php
if(isset($_GET['safehouse']))
{
$bypassguides = 1;
print "Here will be info about the safe house.";
}
?>
<?php
if(isset($_GET['church']))
{
$bypassguides = 1;
print "Here will be info about the church.";
}
?>
<?php
if(isset($_GET['settlerscamp']))
{
$bypassguides = 1;
print "Here will be info about the settlers camp.";
}
?>
<?php
if(isset($_GET['acadamy']))
{
$bypassguides = 1;
print "Here will be info about the acadamy.";
}
?>
<?php
if(isset($_GET['market']))
{
$bypassguides = 1;
print "Here will be info about the market.";
}
?>
<?php
if(isset($_GET['barracks']))
{
$bypassguides = 1;
print "Here will be info about the barracks.";
}
?>
<?php
if(isset($_GET['castle']))
{
$bypassguides = 1;
print "Here will be info about the castle.";
}
?>
<?php
if(isset($_GET['embassy']))
{
$bypassguides = 1;
print "Here will be info about the embassy.";
}
?>
<?php
if(isset($_GET['wall']))
{
$bypassguides = 1;
print "Here will be info about the wall.";
}
?>
<?php
if(isset($_GET['tavern']))
{
$bypassguides = 1;
print "Here will be info about the tavern.";
}
?>
<div id="guidemainpage">
<?php
if ($bypassguides != 1)
{
print " <font color='#FF0000'>Click on the following links to read the different sections</font>";
print "<table><tr><td> General </td><td> Guides </td><td> Building </td><td> Guides </td><td> Troop </td><td> Guides </td></tr>";
print "<tr><td>link1</td><td>link2</td><td><A href='guides.php?townhall'>Town Hall</a></td><td><A href='guides.php?acadamy'>Acadamy</a></td><td>link5</td><td>link6</td>";
print "<tr><td>link1</td><td>link2</td><td><A href='guides.php?warehouse'>Warehouse</a></td><td><A href='guides.php?market'>Market</a></td><td>link5</td><td>link6</td>";
print "<tr><td>link1</td><td>link2</td><td><A href='guides.php?mill'>Mill</a></td><td><A href='guides.php?barracks'>Barracks</a></td><td>link5</td><td>link6</td>";
print "<tr><td>link1</td><td>link2</td><td><A href='guides.php?house'>House</a></td><td><A href='guides.php?castle'>Castle</a></td><td>link5</td><td>link6</td>";
print "<tr><td>link1</td><td>link2</td><td><A href='guides.php?safehouse'>Safe House</a></td><td><A href='guides.php?embassy'>Embassy</a></td><td>link5</td><td>link6</td>";
print "<tr><td>link1</td><td>link2</td><td><A href='guides.php?church'>Church</a></td><td><A href='guides.php?wall'>Wall</a></td><td>link5</td><td>link6</td>";
print "<tr><td>link1</td><td>link2</td><td><A href='guides.php?settlerscamp'>Settlers Camp</a></td><td><A href='guides.php?tavern'>Tavern</a></td><td>link5</td><td>link6</td></tr>";
print "<tr><td>link1</td><td>link2</td><td>link3</td><td>link4</td><td>link5</td><td>link6</td></tr></table>";
}
?>
</div>
ok i had z-index=4 and that meant it was i think in the page right before this one (at the bottom of the php) so i changed it to z-index=5 and now it works perfectly...
sorry for giving a hard time, but i appreciated the help guys..THanks