PDA

Zobacz pełną wersję : Program ze stroną w IE ok a w FF ...



grusznik
10-03-2007, 23:15
Witam
Mam pewnien problem. Już męczę się z nim trochę i uznałem żę może poszukam wsparcia. A więc tak. www.eparczew.pl/ocesia (http://www.eparczew.pl/ocesia) na IE wyświetla się ok a na FF nie do końca. Oto kodzik indexu templatka.



<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO );

$jc_template_path = $mosConfig_live_site.'/templates/jc_corp';

?>

<!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">

<head>
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="<?php echo $jc_template_path;?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $jc_template_path;?>/css/layout.css" rel="stylesheet" type="text/css" />

<link href="<?php echo $jc_template_path;?>/css/big_layout.css" rel="alternate stylesheet" type="text/css" title="WideScreen" />
<script language="javascript" type="text/javascript" src="<?php echo $jc_template_path;?>/js/jc_script.js"></script>
<?php
if ( $my->id ) { initEditor(); }
?>
</head>
<body>
<div id="gruszka">
<div id="wrapper">
<?php mosLoadModules( 'user3',-2);?>
</div>
<div id=left>
<table aling=left BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr>
<td id=logo></td>
</tr>
<tr>
<td id=menu2><?php mosLoadModules( 'left', -2);?><?php mosLoadModules( 'right', -2);?></td>
</tr>
<tr>
<td id=tabend1></td>
</tr>
</table>
</div>
<div id=right>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr>
<td id=prawa>
<?php mosMainBody(); ?>
<?php if ( mosCountModules( 'user1' ) || mosCountModules( 'user2' ) ) { ?>
<?php mosLoadModules( 'user1', -2);?>
<?php mosLoadModules( 'user2', -2);?>

</td>
</tr>
<tr><td><?php } ?></td>
</tr>
<tr>
<td id=tabend2></td>
</tr>
</table>
</div>

</div>

<div id=koniec>
</div>


</body>
</html>
a to CSS

/* layout and positioning */

#gruszka {
width : 750px;
text-align : center;
margin : 0 auto 0 auto;
float : none;
background-color : #162a4b;
}
#wrapper {
width: 750px;
height: 50px;
text-align: right;
margin: 0 auto 0 auto;
background : url(../images/top.jpg) no-repeat;
}
#koniec {
width: 750px;
height: 42px;
text-align: none;
margin: 0 auto 0 auto;
background : url(../images/down.jpg) no-repeat;
}
#menu2 {
width: 220px;
margin: auto 0 auto;
text-align: left;
background : url(../images/menu.jpg) repeat;
}
#podmenu {
width: 220px;
text-align: left;
margin: auto 0 auto;
margin-left: 20px;
}
#tlobig {
width: 750px;
margin: auto 0 auto;
text-align: left;
background : url(../images/tlobig.jpg) repeat;

}

#left{
width : 220px;
float : left;
background-color : #162a4b;
}
#right{
width : 530px;
float : right;
background-color : #162a4b;
}
#lewa{
width : 220px;
background-color : #162a4b
float : left;
}
#tabend1{
width : 220px;
height : 14px;
background : url(../images/tabend1.jpg) no-repeat;

}
#tabend2{
width : 530px;
height : 15px;
background : url(../images/tabend2.jpg) no-repeat;
}

#prawa{
width : 530px;
float : right;
background : url(../images/tlo.jpg) repeat;
text-align : left;
margin-right : 0px;
margin-left : 0px;
margin-bottom : 0px;
margin-top : 0px;
}

#logo
{
background : url(../images/logo.jpg) no-repeat;
width : 220px;
height : 298px;
margin : auto 0 auto;
text-align : left;
}

#topmenu
{
width : 709px;
height : 40px;
}

#menubox
{
background-color : #92BC20;
border : 1px solid #DADFCA;
height : 39px;
width : 479px;
float : left;
padding-left : 2px;
}

#rightmenubox
{
height : 39px;
width : 223px;
float : right;
border : 1px solid #CCCCCC;
}


#rightnav
{
width : 221px;
border : 1px solid #EBEBEB;
background-color : #F7F7F7;
float : right;
margin-top : 2px;
}





#copyright
{
width : 709px;
margin-top : 20px;
margin-bottom : 10px;
text-align : center;
background-color : #F7F7F7;
height : 14px;
padding-top : 2px;
border : 1px solid #EBEBEB;
float : left;
}

#content-footer
{
width : 709px;
height : 20px;
background-color : gray;
}

#contentbottom
{
width : 100%;
margin-top : 10px;
}

#user1
{
border : #F7F7F7;
float : right;
width : 239px;
}

#user2
{
border : 1px solid #EBEBEB;
background-color : #F7F7F7;
width : 237px;
}

#myfooter
{
text-align : center;
}


.brclear {
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0px;
}




/* Clear fix */
.clearfix:after {
clear: both;
display: block;
content: ".";
height: 0;
visibility: hidden;
}

.clearfix {display: inline-table;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */



I nie wiem gdzie problem. Pomcy!

stone
11-03-2007, 22:29
po pierwsze jak wstawiasz cały kod to daj go w pliku nawet txt jako załącznik, a nie wklejaj bo to zaciemnia temat.
Co do samego problemu to rozumiem że chodzi o pozycję menu głównego. Ja bym poeksperymentował z ustawieniem margin-left lub padding-left dla klasy "left"