Slave a tutti avrei questo problema:
ho diviso l pagina in frame con css : top, left e right. Soltanto che quando utilizzo l'id right me lo utilizza come un left, che cosa ho sbagliato? grazie
Codice css
codice php su cui ho applicato il css
ho diviso l pagina in frame con css : top, left e right. Soltanto che quando utilizzo l'id right me lo utilizza come un left, che cosa ho sbagliato? grazie
Codice css
Codice:
@CHARSET "ISO-8859-1";
ul#menu {
font-family: Verdana, sans-serif;
font-size: 12px;
margin: 0;
padding: 0;
list-style: none;
}
ul#menu li {
background-color: #FF831C;
border-left: 5px solid #54BAE2;
display: block;
width: 150px;
height: auto;
margin: 2px 0;
}
ul#menu li a {
color: #fff;
display: block;
font-weight: bold;
line-height: 30px;
padding-left: 15px;
text-decoration: none;
width: 135px; /* 150px - 15px (padding) */
height: auto;
}
ul#menu li.active, ul#menu li:hover {
background-color: #54BAE2;
border-left: 5px solid #FF831C;
}
body
{
margin: 0px;
overflow: Hidden;
}
#top
{
height: 15%;
padding: 5px;
overflow: Hidden;
}
#left
{
float: Left;
width: 20%;
padding: 5px;
overflow: Auto;
}
#right
{
float: Left;
width: 80%;
height: 85%;
padding: 5px;
overflow: Auto;
}
#foother
{
height: 15%;
padding: 5px;
overflow: Hidden;
}
PHP:
<?php
session_start();
include 'connect.php';
$username=$_SESSION['username'];
$strcmd="SELECT person.Title, person.FirstName, person.LastName, person.email1, person.WorkTelepone, person.MobilePhone, person.InstitutionLongName FROM person, user WHERE username='$username' AND person.id_person=user.id_person";
$query=mysql_query($strcmd);
if(!$query)
echo" ".mysql_error()." ";
else
{
$array=mysql_fetch_assoc($query);
?>
<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="stile.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="top">
<span>
<center><img src="img/logo_UoR.jpg" /></center>
</span>
</div>
<div id="left">
<span>
<ul id="menu" >
<li class="active"><a href="menu.php">Profilo</a></li>
<li><a href="#">Register a new germplasm</a></li>
<li><a href="#">Set up a new donor</a></li>
<!-- <li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li> -->
</ul>
</span>
</div>
<div id="right">
<span>
<table>
<!--Titolo-->
<tr>
<td>
Title
</td>
<td>
<?php
echo"".$array['Title'];
?>
</td>
</tr>
<!--Nome -->
<tr>
<td>
First Name
</td>
<td>
<?php
echo"".$array['FirstName'];
?>
</td>
</tr>
<!--Cognome-->
<tr>
<td>
Last Name
</td>
<td>
<?php
echo"".$array['LastName'];
?>
</td>
</tr>
<!--Email-->
<tr>
<td>
E-mail
</td>
<td>
<?php
echo"".$array['email1'];
?>
</td>
</tr>
<!--Worktelephone-->
<tr>
<td>
Worktelephone
</td>
<td>
<?php
echo"".$array['WorkTelepone'];
?>
</td>
</tr>
<!--Mobiletelephone-->
<tr>
<td>
Mobilephone
</td>
<td>
<?php
echo"".$array['MobilePhone']
?>
</td>
</tr>
<!--Institution-->
<tr>
<td>
Institution
</td>
<td>
<?php
echo"".$array['InstitutionLongName'];
}
?>
</td>
</tr>
</table>
</span>
</div>
</body>
</html>