![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 347 Pomógł: 0 Dołączył: 27.08.2005 Skąd: Inowrocław Ostrzeżenie: (0%) ![]() ![]() |
Mam kod :
A tu CSS: Kod #container { border: 1px solid #d5d5d5; background-color: #01a568; padding: 1px; width: 500px; float: left; margin: auto; } #logo { background-color: #ffffff; text-align: left; margin-bottom: 1px; float: left; width: 496px; } #menu { background-color: #ffffff; border-top: 1px solid #d5d5d5; float: left; width: 200px; } #tresc { background-color: #ffffff; border-top: 1px solid #d5d5d5; border-left: 1px solid #d5d5d5; float: right; width: 295px; } #stopka { background-color: #ffffff; border-top: 1px solid #d5d5d5; float: right; width: 496px; margin-top: 1px; } Otoz problemy przyspaza mi ustawienie tego po srodku oraz nie wiem jak zrobic, aby DIV menu sie rozciagal na ta sama dlugosc co tresc. Ma ktos jakies pomysly (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif) I jeszcze jedno... o ile ten kod dobrze dziala pod IE to w FF sie rozsypuja szerokosci, gdy zrobie pod FF to w IE sie rozjezdza :/ Ten post edytował OnE.Killer 5.02.2006, 14:48:05 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 143 Pomógł: 0 Dołączył: 23.08.2005 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Kod * { margin: 0; padding: 0; border: 0; } body { background-color: #fff; margin: 0; padding: 0; margin: 0 auto; } #container { border: 1px solid #d5d5d5; background-color: #01a568; padding: 1px; width: 500px; margin: 0 auto; } #logo { background-color: #ffffff; text-align: left; margin-bottom: 1px; width: 496px; height: XXpx; //zamiast XX jakas wartosc } #menu { background-color: #ffffff; border-top: 1px solid #d5d5d5; float: left; width: 200px; height: auto; //albo sproboj 100% } #tresc { background-color: #ffffff; border-top: 1px solid #d5d5d5; border-left: 1px solid #d5d5d5; float: right; width: 295px; height: auto; // albo 100% } #stopka { background-color: #ffffff; border-top: 1px solid #d5d5d5; clear: both; width: 496px; height: XXpx; // tutaj zamiast XX tez dajesz jakas wartosc margin-top: 1px; } Zobacz teraz jak jest.. Ten post edytował ens0re 5.02.2006, 14:59:36 |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 347 Pomógł: 0 Dołączył: 27.08.2005 Skąd: Inowrocław Ostrzeżenie: (0%) ![]() ![]() |
Teraz jest po srodku :] ale nadal sie nie rozciaga (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) (to akurat moge przebolec i dac samemu wysokosc na sztywno) i nadal inaczej wyglada pod FF i IE (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
Ten post edytował OnE.Killer 5.02.2006, 15:12:14 |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 143 Pomógł: 0 Dołączył: 23.08.2005 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Sprawdz taki kod i dostosuj go do swoich potrzeb.. |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 347 Pomógł: 0 Dołączył: 27.08.2005 Skąd: Inowrocław Ostrzeżenie: (0%) ![]() ![]() |
Dzieki :] teraz wszystko chodzi jak trzeba (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Kod body {
background-color: #ffffff; text-align: center; } #container { margin: 0 auto; border: 1px solid #d5d5d5; background-color: #01a568; padding: 1px; width: 500px; text-align: center; } #logo { background-color: #ffffff; text-align: left; margin-bottom: 1px; width: 500px; height: 100px; } #menu { background-color: #ffffff; border-top: 1px solid #d5d5d5; width: 150px; float: left; } #tresc { background-color: #ffffff; border-top: 1px solid #d5d5d5; border-left: 1px solid #d5d5d5; margin-left: 1px; width: 348px; float: left; } #stopka { width: 500px; height: 20px; clear: both; background-color: #ffffff; border-top: 1px solid #01a568; } |
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 1 086 Pomógł: 8 Dołączył: 10.12.2003 Ostrzeżenie: (0%) ![]() ![]() |
Maniacy semantycznego kodu oszczędzają na każdym jednym zaczniku ;-)
Kod body { background-color: #ffffff; text-align: center; } #container { margin: 0 auto; border: 1px solid #d5d5d5; background-color: #01a568; padding: 1px; width: 500px; text-align: center; } Kod html {
background-color: #fff; } body { margin: 0 auto; width: 500px; padding: 1px; border: 1px solid #d5d5d5; background-color: #01a568; text-align: center; } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 00:33 |