Grazie, sei stato gentilissimo, adesso è davvero perfetto!
E poi grazie al tuo aiuto ho imparato delle cose utili che potranno essermi utili per il futuro...
Dato che ci sono posto anche il resto del codice, però non voglio essere stressante, rispondi pure con calma e quando hai tempo, vorrei sapere quali sono le parti inutili, superflue o che appesantiscono senza creare vantaggi.
Considera che mi ho usato com base template prefatti, a cui ho cambiato praticamente quasi tutto...
L'introduzione che trovi nel php per esempio è quella che trovi scritta in un tutti i template per websitebaker (il cms che utilizzo e per il quale sto costruendo il template il questione).
Ancora devo terminare, per ora c'è solo la struttura di base...
Devo ancora inserire il footer; un linear menu; creare la struttura grafica dei "tasti" del menu, ecc...
Qui c'è la parte php:
codice:
Website Baker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Website Baker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Website Baker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php page_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="container">
<div id="header" class="width" align="center">
[img]/media/header.jpg[/img]
</div>
<div id="navigation"> <td class="leftside">
<?php show_menu2(); ?>
</div>
<div id="extra"> <td class="content (2)>
<?php page_content(2); ?>
</div>
<div id="content"> <td class="content (1)>
<?php page_content(1); ?>
</div>
</body>
E qui quella css:
codice:
@charset "utf-8";
/* CSS Document */
body{
text-align: left;
margin: 0;
background-color: #d4d3d3;
}
#container{
background-image: url(/media/light_body.gif);
background-position: center;
padding: 5px 40px;
width: 960px;
margin: 0px auto;
text-align: left;
}
#navigation{
float: left;
width: 160px;
width:170px;
width:160px;
}
#extra{
float: right;
width: 160px;
width: 170px;
width: 160px;
}
#content{
margin: 0 180px;
}
C'è una cosa che vorrei fare da subito: vorrei spostare il menu di sinistra più a sinistra (parte troppo avanti)...sai come posso fare?
Grazie per il supporto e scusa per il post valanga, ciao!