Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : massimiliano70 09 Jul 2009, 07:23:31
-
salve,
stò provando a creare un template con joomla1.5 visualizzando in firefox tutto bene male in explorer crome e safari e non riesco a capirne il perchè vi posto il foglio css, spero mi possiate aiutare grazie
* {
padding: 0;
margin: 0;
}
img {
border: 0;
}
body {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.3em;
margin: 0;
padding: 0;
font-size: 13px;
color: #0F0F0F;
background-image: url(../images/fiamme.jpg);
}
a:link, a:visited {
text-decoration: underline;
font-weight: normal;
color: #000;
outline: none;
text-align: left;
}
.float {
float: left;
}
.clear {
clear: both;
}
.overall {
background-color: #fff;
}
div.center {
text-align: center;
margin: 0px auto 0 auto;
padding: 0;
width: 950px;
background: #FFFFFF;
}
#container {
width: 800px;
margin: auto;
background-color: #f4f9fc;
border: 1px solid #e2e2e2;
text-align: left;
}
#header {
text-align: center;
background-color: #f4f9fc;
height: 100px;
background-image: url(../images/top.jpg);
}
#content {
width: 400px;
text-align: left;
background-color: #f4f9fc;
height: 338px;
background-image: url(../images/03.jpg);
position: absolute;
left:368px;
}
#sidebar_left {
text-align: center;
background-color: #f4f9fc;
width: 200px;
background-image: url(../images/02.jpg);
height: 338px;
}
#sidebar_right {
width: 200px;
background-image: url(../images/04.jpg);
height: 338px;
position: absolute;
left: 768px;
}
#footer {
text-align: center;
background-image: url(../images/footer.jpg);
position: absolute;
left: 168px;
top: 439px;
width: 800px;
height: 162px;
}
Metto anche l'html
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php
echo $this->language; ?>" >
<head>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/faidatecasa/css/template.css" type="text/css" />
<link href="css/template.css" rel="stylesheet" type="text/css" />
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<div id="container">
<div id="header">
</div>
<div id="sidebar_left" class="float">
</div>
<div id="content" ></div>
<div id="sidebar_right"class="float">
</div>
<div id="footer" class="float"> </div>
</div>
</body>
-
ciao massimiliano70 ;D
bhè non so io avrei compilato il css in modo diverso... cmq puoi fare anche cosi :
nell'html tra i tag <head> aggiungi :
<!--[if IE]>
<link href="/ie.css" rel="stylesheet" type="text/css" media="screen">
<![endif]-->
poi crei un secondo css da inserire sempre nella cartella css e lo chiami: ie.css e lo compili così:
body{
overflow:hidden;
margin:0;
padding:6em 0 0 0;
}
#content {
width:100%;
height:100%;
overflow-y:scroll;
margin:0 0 0 12em;
padding:1em;
}
#sidebar{
top:0;
overflow:hidden;
height:100%;
margin:0;
padding:6em 0 0 0;
}
Naturalmente le varie misure le regoli a secondo delle tue esigenze... fammi sapere se funge, ciao
-
grazie per il suggerimento ma devo capire meglio come utilizzare il foglio supplementare css per ottimizzare la visualizzazione su ie.