Chciałbym poprosić o pomoc w modyfikacji pliku css mojej strony, otóż kiedyś, gdy tworzyłem stronkę robiłem wszystko i testowałem pod monitorem 22 calowym, w obecnej chwili sprawdziłem to na ekranie laptopa i panel logowania tzn obrazek po lewej i formularz po prawej od niego widziany normalnie na dużym monitorze, na laptopie o ekranie około 15,5 cala obrazek prawie sie chowa w formularz po prawej, mecze sie, aby jakos to ustawic, ale nie moge dosc co zmienic w pliku css, aby to gralo na malych ekranach jak i na duzych. Bardzo prosilbym o pomoc
Oto kod strony:
<?php function ShowLogin($komunikat=""){ //echo "Jeśli nie jesteś zarejestrowany, <a href='rejestruj.php'>tu znajdziesz formularz</a>"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="css/default.css" rel="stylesheet" type="text/css" /> <title>Strona główna</title> </head> <body> <div id="obrazek"> <img src="images/page.large.png" alt="" /> </div> <?php if($_GET["wyloguj"]=="tak"){ $_SESSION["zalogowany"]=0; } if($_SESSION["zalogowany"]!=1){ if(mysql_num_rows(mysql_query("select * from users where user_login = '".htmlspecialchars($_POST["login"])."' AND user_haslo = '".htmlspecialchars($_POST["haslo"])."'"))){ $_SESSION["zalogowany"]=1; } } else ShowLogin(); } else{ } ?> </body> </html>
teraz plik css:
body { font-family: helvetica, arial, sans-serif; background: #e3e3e3; margin: 150px auto; /*margin-left: 150px;*/ } #login { margin-top: 40px; text-align: center; background: #e3e3e3 url(../images/whiteGradient.png) no-repeat top left; border: 1px solid #CFCFCF; height: 360px; _height: 330px; width: 705px; position: absolute; left: 43%; /* manipuluję od lewej dla całego konteneru login - przesuwajka */ /*margin-left: -352px; top: 50%; margin-top: -165px; -moz-border-radius-bottomright: 30px; -webkit-border-bottom-right-radius: 30px; _height: 100%; IE FIX */ } #obrazek { margin-top: 61px; text-align: center; height: 360px; _height: 330px; width: 705px; position: absolute; left: 12.5%; /* manipuluję od lewej dla całego konteneru z obrazkiem - przesuwajka */ /*margin-left: -352px; top: 50%; margin-top: -165px; -moz-border-radius-bottomright: 30px; -webkit-border-bottom-right-radius: 30px; _height: 100%; IE FIX */ float:left; } h2 { padding: 15px 0 15px 75px; _padding-left: 38px; margin-top: 25px; font-size: 45px; color: #8B0D00; border-top: 1px solid #9F9F9F; text-indent: -70px; width: 676px; height: 73px; position: relative; left: -23px; } label { font-size: 24px; } input { width: 40%; height: 30px; position: relative; top: -4px; font-size: 20px; padding: 0 .3em; color: #555555; } input#submit { width: 16%; font-size: 15px; margin-left: -108px; } small { font-size: 16px; position: relative; top: -4px; color: #292929; } h4 { color: #5F5F5F; font-size: 23px; } h4.alert { background-Color: #bfbfbf; width: 80%; margin-left: auto; margin-right: auto; padding: .4em; border: 1px dotted white; font-size: 19px; line-height: 19px; position: relative; -moz-border-radius: 2px; -webkit-border-radius: 2px; } position: absolute; top: 0; right: 0; background: #6361DF; color: #292929; font-size: 10px; line-height: 14px; font-weight: bold; padding: 0 .3em; cursor: pointer; border-left: 1px dotted white; border-bottom: 1px dotted white; }
Byłbym bardzo wdzięczny, podejrzewam, że trzeba zmodyfikować sekcję login i obrazek.
Z góry dziekuję
pozdrawiam