Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [php] niepozadane zachowanie strony :((((
Forum PHP.pl > Forum > PHP
p!ter
Witam!

Moj problem polega na tym ze w przegladarce Firefox oraz w Operze moja strona po nacisnieciu w linki z menu bocznego przesuwa sie raz w lewo raz w prawo. Nie wiem co jest grane mad.gif
Prosze o pomoc!

Mozecie sprawdzic sami pod adresem Moja strona

Zalaczam kod glownej strony.

Kod
<?php
session_start();
?>
<?php
print "
<html>
<head

  <meta http-equiv=content-type content=text/html; charset=iso-8859-2>

  <link rel= stylesheet HREF=style.css>
  <title>Samodzielny zakład programowania</title>
  </head>
  <body>

  <table class=glowna align=center cellspacing=4>
       <tr>
              <td colspan=2 height=100><img src=grafika/baner.jpg></td>
              <td><td>
       </tr>

       <tr>
              <td class=pasek colspan=2>";

                      include('logform.php');
print "<br>
              </td>

              <td></td>
       </tr>
       <tr>
              <td class=menu valign=top>
                     <br>
                     <table align=center cellspacing=4>
                            <tr>
                                   <td class=buton background=grafika/buton.gif align=center><a href=index.php?czy=1>aktualno¶ci</a></td>
                            </tr>

                      <tr>
                                   <td class=buton background=grafika/buton.gif align=center><a href=index.php?czy=2>microsoft</a></td>
                            </tr>

                            <tr>
                                   <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=3>sun</a></td>
                            </tr>

                            <tr>
                                   <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=4>szkolenia</a></td>
                            </tr>

                            <tr>
                                   <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=5>projekty</a></td>
                            </tr>

                            <tr>
                                   <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=6>certyfikaty</a></td>
                            </tr>";
                            
                            if($_SESSION['loged']==true)
                            {                                        
                                print "<tr>
                                    <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=7>egzaminy</a></td>
                                </tr>";
                                
                                print "<tr>
                                    <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=15>materiały</a></td>
                                </tr>";
                            }
                            
                            print "<tr>
                                   <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=8>zdjęcia</a></td>
                            </tr>

                            <tr>
                                   <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=9>linki</a></td>
                            </tr>

                            <tr>
                                   <td class=buton background=grafika/buton.jpg align=center><a href=index.php?czy=13>kontakt</a></td>
                            </tr>
                     </table>

              </td>

<td class=glowna><br>";


       include ('klasa.php');
       $obiekt = new klasa();

       $obiekt -> polacz();

if($_REQUEST['czy']==0)
{
       $wybor = 1;
}
else
{
       $wybor = $_REQUEST['czy'];
}

       switch($wybor)
       {
              case 1:
                     $obiekt -> index();
                     break;

              case 2:
                     $obiekt -> microsoft();
                     break;

              case 3:
                     $obiekt -> sun();
                     break;

              case 4:
                     $obiekt -> szkolenia();
                     break;

              case 5:
                     $obiekt -> projekty();
                     break;

              case 6:
                     $obiekt -> certyfikaty();
                     break;

              case 7:
                     $obiekt -> egzaminy();
                     break;

              case 8:
                     $obiekt -> zdjecia();
                     break;

              case 9:
                     $obiekt -> linki();
                     break;

              case 10:
                     $obiekt -> profil();
                     break;

              case 11:
                     $obiekt -> adminpanel();
                     break;

              case 12:
                     $obiekt -> zmien();
                     break;

              case 13:
                     $obiekt -> kontakt();
                     break;

              case 14:
                     $obiekt -> dane();
                     break;
                    
              
              case 15:
                     $obiekt -> materialy();
                     break;
       }

       $obiekt -> rozlacz();
?>

</td>
       </tr>
  </table>


i jeszcze plik stylow CSS
Kod
body
{
    background:#f1f1ef;
    
}

table.glowna
{
    width:800;
}

td.pasek
{
    background-image: url("./grafika/logobar.gif");
    background-position = "top";
}

td.menu
{
    width:137;
    padding-top:1;
    padding-bottom:7;
}

td.buton
{
    width:120;
}

td.glowna
{
    background:white;
    width:709;
    padding-left:1;
    padding-right:4;
    padding-top:7;
    padding-bottom:7;
    
}

a:link
{
    font-family: Arial;
    font-size: 15;
    font-weight: bold;
    text-decoration: none;
    color:#FFFFFF;
}



a:visited
{
    font-family: Arial;
    font-size: 15;
    font-weight: bold;
    text-decoration: none;
    color: #FFFFFF;
}



a:hover
{
    color: red;
    font-size: 15;
    font-family: Arial;
    font-weight: bold;
    text-decoration: none;
}



a:active
{
font-family: Arial;
font-size:15;
font-weight: bold;
text-decoration: none;
}

h4
{
   font-family: arial;
   font-size: 15;
   font-weight: bold;
   text-decoration: none;
   color:black
}

span
{
   font-family: arial;
   font-size: 18;
   font-weight: bold;
   text-decoration: none;
   color:white;
}

p
{
   font-family: arial;
   font-size: 14;
   font-weight: bold;
   text-decoration: none;
   color:black
}

table.tabelka1
{
    border-collapse: collapse;
}

tr.tabelka1
{
   font-family: arial;
   font-size: 13;
   font-weight: bold;
   text-decoration: none;
   color:black

}

tr.tabelka
{
   font-family: arial;
   font-size: 14;
   text-decoration: none;
   color:black

}

hr
{
    color:#5271c1;
}





a.l:link
{
    font-family: Arial;
    font-size: 15;
    font-weight: bold;
    text-decoration: none;
    color:#993366;
}



a.l:visited
{
    font-family: Arial;
    font-size: 15;
    font-weight: bold;
    text-decoration: none;
    color: #993366;
}



a.l:hover
{
    color: red;
    font-size: 15;
    font-family: Arial;
    font-weight: bold;
    text-decoration: none;
}



a.l:active
{
font-family: Arial;
font-size:15;
font-weight: bold;
text-decoration: none;
}
nasty
Kodu nawet nie przgladalem bo od razu widac, masz ustawione align="center" i rozmiar wszystkich stron ni jest jednakowy, postaraj sie zmienic
  1. <table class=glowna align=center cellspacing=4>

na
  1. <table class=glowna align=center cellspacing=4 width=*****>

gdzie ****** to rozmiar tabeli, rozmiar musisz wycentrowac zeby miescil wszystkie strony, i byl na wszystkich jednakowy
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.