Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Problem z warstwami
kowal199306
post
Post #1





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 19.10.2007

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


Mam takie style dla strony:
CODE
html, body {
background-color: #fff;
color: #000;
margin: 0;
padding: 0;
text-align: center;
}

DIV
{
text-align: center;
margin: 0 auto 0 auto;
border: 2px solid #000000;
}
#top {
width: 780px;
}

#NAGLOWEK {
background-color: #888;
}

#MENU {
width: 150px;
float: left;
overflow: hidden;
background-color: #ccc;
}

#TRESC {
width: 630px;
float: left;
overflow: hidden;
background-color: #fff;
}

#STOPKA {
clear: both;
width: 100%;
background-color: #888;
}



Co robię źle ponieważ treść i menu powinny wyświetlić się obok siebie a wyświetlają się pod sobą. Bardzo proszę o pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
Lejto
post
Post #2





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


prawdopodobnie twoje namiary przekraczają 1000px (100%) w twoim przypadku jak widzę 780px zobacz tak:
Kod
html, body {
background-color: #fff;
color: #000;
margin: 0;
padding: 0;
text-align: center;
}

DIV
{
text-align: center;
margin: 0 auto 0 auto;
border: 2px solid #000000;
}
#top {
width: 785px;
}

#NAGLOWEK {
background-color: #888;
}

#MENU {
width: 150px;
float: left;
overflow: hidden;
background-color: #ccc;
}

#TRESC {
width: 630px;
float: left;
overflow: hidden;
background-color: #fff;
}

#STOPKA {
clear: both;
width: 100%;
background-color: #888;
}

to chyba przez border bo zabiera 2px (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) , też miałem takie problemy (IMG:http://forum.php.pl/style_emoticons/default/sciana.gif)
Go to the top of the page
+Quote Post
kowal199306
post
Post #3





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 19.10.2007

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


Ok podzialalo (IMG:http://forum.php.pl/style_emoticons/default/rolleyes.gif) Wielkie dzięki za pomoc! (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post

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: 22.08.2025 - 12:20