Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS]Problem z warstwami
kowal199306
post 9.07.2008, 21:17:16
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
Lejto
post 9.07.2008, 21:25:54
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 winksmiley.jpg, też miałem takie problemy sciana.gif


--------------------
Go to the top of the page
+Quote Post
kowal199306
post 9.07.2008, 21:36:08
Post #3





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

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


Ok podzialalo rolleyes.gif Wielkie dzięki za pomoc! biggrin.gif
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 25.04.2024 - 02:06