21
I Template di Joomla 1.5.x / Re:il mio primo template
« il: 11 Ott 2010, 09:42:43 »
Così va meglio?? Come faccio a far estendere la sidebar per tutta l'altezza del maindiv?
CSS:
PHP:
CSS:
Codice: [Seleziona]
* {
padding: 0;
margin: 0; }
img {
border: 0; }
a:link, a:visited {
text-decoration: underline;
font-weight: normal;
color: #000;
outline: none;
text-align: left; }
body {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.3em;
margin: 0;
padding: 0;
font-size: 13px;
color: #0f0f0f;
background-color:#b4b4b4; }
#maindiv {
width:980px;
margin:auto;
background-color:#f0f0f0;
text-align:left; }
#container {
margin:auto;
}
#sidebar {
margin:auto;
width:280px;
margin:auto;
float:left; }
#logo {
background-color:red;
height:80px; }
#header {
margin:auto; }
#content {
width:700px;
text-align: left;
margin:auto; }
#footer {
text-align: center;
border-top: 1px solid #e2e2e2;
border-bottom: 1px solid #e2e2e2;
padding: 5px; }
PHP:
Codice: [Seleziona]
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/xxx/css/template.css" type="text/css" />
</head>
<body>
<div id="maindiv">
<div id="sidebar">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<div id="container">
<div id="header">
<jdoc:include type="modules" name="top" style="xhtml" />
</div>
<div id="content">
<jdoc:include type="component" />
</div>
</div>
</div>
</body>