Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS,HTML] Wyśrodkowanie
krzychu0808
post
Post #1





Grupa: Zarejestrowani
Postów: 428
Pomógł: 2
Dołączył: 1.04.2007
Skąd: Pogorzelica

Ostrzeżenie: (10%)
X----


Witam....
Mam problem nie mogę wyśrodkować div zorbiłem coś takiego:

css:
Kod
#tabela1 {
        float: center;
    width:797px;
    z-index:1;

}
#1 {
    left:0px;
    top:0px;
    width:797px;
    height:106px;
    z-index:1;
}


HTML:
Kod
<body bgcolor="#285ec2">

<div id="tabela1">
<div id="1"><img src="images/1.jpg" width="797" height="106" longdesc="images/1.jpg" /></div>
</div>

</body>


Chodzi mi o to aby <div id="tabela1"> był wyśrodkowany
Proszę o pomoc....

Ten post edytował krzychu0808 28.12.2007, 20:04:09
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
xbigos
post
Post #2





Grupa: Zarejestrowani
Postów: 239
Pomógł: 27
Dołączył: 13.07.2005
Skąd: Jarocin

Ostrzeżenie: (0%)
-----


  1. #tabela1 {
  2. margin: 0px auto;
  3. width:797px;
  4. z-index:1;
  5.  
  6. }

Nie ma czegoś takiego jak float: center;

Ten post edytował xbigos 28.12.2007, 22:14:48
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 00:59