Autor Zpráva
dawe27
Profil
Zdravím,
mám problém na svojem webu nemůžu dostat obsah stránky na střed viz. http://testweb.hys.cz/11 nemůžu přijit kde je chyba a už jsem to snad prošel 100x. neporadil by mi někdo? děkuji za odpovědi.
<body class="body">  

<div id='header'>
<table width="1000" align="center" class='header'>
    <tr>
        <td align='left'><a href='index.php'><img src='images/logo.png' alt='logo' /></a></td>
    </tr>
</table>  
</div>

 
<div id='menu'>
<table width="1000" align="left" class='menu'>
    <tr>
        <td align='left'><a href='index.php'>Home</a></td>
    </tr>
</table>  
</div>

<div class='obsah2'>
<table width='1000' align='center' border='0'  cellpadding='0' cellspacing='0' > 
    <tr>  
        <td class='panels'  valign='top'  width='250'    align='left'  >
            <table  border='0' cellpadding='0' cellspacing='0'>
                <tr>
                    <td class='panel1'>Aktuality</td>
                </tr>
                <tr>
                    <td class='panelobsah'>Obsah panelu</td>
                </tr>
                <tr>
                    <td class='panel1'>Aktuality</td>
                </tr>
                  <tr>
                    <td class='panelobsah'>Obsah panelu</td>
                </tr>
            </table>
        </td>              
        <td class='obsahstranky'  align='left' valign='top'  width='750'><?print $obsah;?></td>        
    </tr>
</table>  
</div>

 

.body {
    background-color : #f1efef;
    margin: 0 auto;
    font-size : 11pt; 
    font-family : arial;

}    


#header {
    background-image: url(images/header.png); 
    background-position: top center; 
    color : #fff;
    height: 200px;
    width : 100%;
    min-width : 100%;    
}

.header { 
    height : 200px;    
    width : 1000px;     
}

#menu {
    background-color : #2d2d2d;
    color : #fff;
    height: 35px;
    width : 100%;
    min-width : 100%;    
}

.menu{ 
    height : 35px;    
    width : 1000px;     
    position : center; 
}

.logo {
    padding-left : 30px; 
    padding-top :  20px; 
    opacity : 0.4; 
}  


.required label { color: maroon }
.button { height : 30px; width : 100px; }



.obsah {
    margin: 0 auto;
    position : center;
}    

.obsah2 {
    margin: 0 auto;
    position : center;
    width : 1000px;
}    

.obsahwebu {
    position : top-center;
    font-family : arial;    
    padding-left : 3px;
}    
Fisir
Profil
Reaguji na dawe27:
Já stránku vidím na středu (pokud tedy myslíš horizontální centrování). Prosím, konkretizuj. Nicméně hodnoty top-center a center nejsou hodnoty vlastnosti position, ale background-position.
dawe27
Profil
ja to vidím takto..
Obrázek
Davex
Profil
dawe27:
U tabulky .menu vymaž atribut align="left".
dawe27
Profil
jo už to je správně, diky :))

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0