Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS]Problem z przeglądarkami, Css
x2008x
post 10.11.2009, 17:31:41
Post #1





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 10.11.2009

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


Witam, mam problem.Na operze moja strona działa wporządku, wchodząc przez mozille nie jest już tak ładnie.Elementy są porozrzucane po rogach itd.

Co zrobić by strona wyglądała jednakowo dla Opery, Mozilli czy IE??
Dziękuję.

Mój CSS:
Kod
body {
  background-color: #3b3b3b;
  position: relative; top: -195px;



}

a {
text-decoration:none;
color: red;
font-weight:    bold;

}


#header2 {
  position: relative; top: 1px;
  text-align: center;
  width: 992px;
  height: 41px;
}


#zegar {

  background-color: #284e66;
  text-align: right;
  width: 170px;
  height: 25px;
}

#up {
  float: left;
  text-align: center;
}

#up ul { margin: 0; padding: 0; list-style-type: none; }

#up li { margin: 0 0 .2em 0; }

#up a { display: block; color: #67caf4; background-color: #284e66; width: 132px; padding: .2em .8em; text-decoration: none; }

#up a:hover{ background-color: #369; color: #67caf4; }




#header {
  position: relative; top: 1px;
  text-align: center;
  width: 992px;
  height: 155px;
}


#block {
  background-color: #3b3b3b;
  position: relative; left: 1px;
  width: 992px;
  height: 155px;
}



#Pmenu {
  position: relative; left: 826px;
  position: relative; top: 399px;
  text-align: center;
  background-color: #284e66;
  width: 160px;
  height: 59px;
  z-index: 3;
}

#menu {
  position: relative; left: 0px;
  position: relative; top: 0px;
  text-align: center;
  background-color: #284e66;
  width: 160px;
  height: 160px;
  z-index: 1;
  font-weight:    bold;
}

#menu ul { margin: 0; padding: 0; list-style-type: none; }

#menu li { margin: 0 0 .2em 0; }

#menu a { display: block; color: #67caf4; background-color: #284e66; width: 132px; padding: .2em .8em; text-decoration: none; font-weight:    bold; }

#menu a:hover{ background-color: #369; color: #67caf4; }

#log {
  position: relative; left: 826px;
  position: relative; top: 419px;
  text-align: center;
  background-color: #284e66;
  width: 160px;
  height: 59px;
  z-index: 3;
}


#news {
  background-color: #284e66;
  position: relative; left: 120px;
  font-family: arial;
  text-align: left;
  text-decoration:none;
  color: black;
  position: relative; top: -181px;
  float: left;
  width: 667px;
  height: 0px;
}

#send {
  background-color: #284e66;
  position: relative; left: 160px;
  font-family: arial;
  text-align: left;
  text-decoration:none;
  color: black;
  position: relative; top: -657px;
  float: left;
  width: 667px;
  height: 0px;
}

#info {
  background-color: #284e66;
  position: relative; left: 120px;
  text-align: left;
  position: relative; top: -181px;
  float: left;
  width: 667px;
  height: 30px;
  z-index: 10;
}



#download {
  background-color: #284e66;
  position: relative; left: 160px;
  font-family: arial;
  text-align: left;
  position: relative; top: -658px;
  float: left;
  width: 667px;
  height: 530px;
}

#koment {
  background-color: #284e66;
  position: relative; left: 160px;
  font-family: arial;
  text-align: left;
  position: relative; top: -657px;
  float: left;
  width: 667px;
  height: 500px;
}

#lmenudown {
  position: relative; left: 0px;
  position: relative; top: 0px;
  text-align: center;
  background-color: #284e66;
  width: 160px;
  height: 59px;
  z-index: 5;
}

#newsK {
  position: relative; left: -160px;
  text-align: center;
  position: relative; top: 0px;
  float: left;
  width: 667px;
  height: 30px;
}

#logout {
  background-color: #284e66;
  position: relative; left: 10px;
  position: relative; top: -137px;
  float: left;
  width: 667px;
  height: 500px;
}


a { color: #35dcff; }
a:hover { color: #0088df; }
Go to the top of the page
+Quote Post
Daiquiri
post 10.11.2009, 17:53:04
Post #2





Grupa: Administratorzy
Postów: 1 552
Pomógł: 211
Dołączył: 7.07.2009
Skąd: NJ




A link do strony lub kod HTML?
Go to the top of the page
+Quote Post
x2008x
post 10.11.2009, 17:54:35
Post #3





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 10.11.2009

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


Ok, już daję:

Kod
<?php
include("config.php");
include("staleforindex.php");




$akcja = $_GET['akcja'];
    if ($akcja == wykonaj) {
//
$nick = substr(addslashes(htmlspecialchars($_POST['nick'])),0,32);
$haslo = substr(addslashes($_POST['haslo']),0,32);
$vhaslo = substr($_POST['vhaslo'],0,32);
$email = substr($_POST['email'],0,32);
$vemail = substr($_POST['vemail'],0,32);
//kilka sprawdzen co do nicku i maila
$spr1 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM uzytkownicy WHERE nick='$nick' LIMIT 1")); //czy user o takim nicku istnieje
$spr2 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM uzytkownicy WHERE email='$email' LIMIT 1")); // czy user o takim emailu istnieje
$pos = strpos($email, "@");
$pos2 = strpos($email, ".");
$emailx = explode("@", $email);
if ($emailx[1] == 'o2.pl') {
$emailx1 = $emailx[0].'@go2.pl';
$emailx2 = $emailx[0].'@tlen.pl';
$spr3 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM uzytkownicy WHERE email='$emailx1' OR `email`='$emailx2' LIMIT 1"));
}elseif ($emailx[1] == 'go2.pl') {
$emailx1 = $emailx[0].'@o2.pl';
$emailx2 = $emailx[0].'@tlen.pl';
$spr3 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM uzytkownicy WHERE email='$emailx1' OR `email`='$emailx2' LIMIT 1"));
}elseif ($emailx[1] == 'tlen.pl') {
$emailx1 = $emailx[0].'@go2.pl';
$emailx2 = $emailx[0].'@o2.pl';
$spr3 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM uzytkownicy WHERE email='$emailx1' OR `email`='$emailx2' LIMIT 1"));
}
$komunikaty = '';
$spr4 = strlen($nick);
$spr5 = strlen($haslo);
//sprawdzenie co uzytkownik zle zrobil
if (!$nick || !$email || !$haslo || !$vhaslo || !$vemail ) {
$komunikaty .= "Musisz wypełnić wszystkie pola!<br>"; }
if ($spr4 < 4) {
$komunikaty .= "Login musi mieć przynajmniej 4 znaki<br>"; }
if ($spr5 < 4) {
$komunikaty .= "Hasło musi mieć przynajmniej 4 znaki<br>"; }
if ($spr1[0] >= 1) {
$komunikaty .= "Ten login jest zajęty!<br>"; }
if ($spr2[0] >= 1) {
$komunikaty .= "Ten e-mail jest już używany!<br>"; }
if ($email != $vemail) {
$komunikaty .= "E-maile się nie zgadzaj± ...<br>";}
if ($haslo != $vhaslo) {
$komunikaty .= "Hasła się nie zgadzaj± ...<br>";}
if ($pos == false OR $pos2 == false) {
$komunikaty .= "Nieprawidłowy adres e-mail<br>"; }
if ($spr3[0] >= 1) {
$komunikaty .= "Nie można zarejestrować kilku kont na jedn± pocztę o2.<br>"; }

//jesli cos jest nie tak to blokuje rejestracje i wyswietla bledy
if ($komunikaty) {
echo '
<b>Rejestracja nie powiodła się, popraw następuj±ce błędy:</b><br>
'.$komunikaty.'<br>';
} else {
//jesli wszystko jest ok dodaje uzytkownika i wyswietla informacje
$nick = str_replace ( ' ','', $nick );
$haslo = md5($haslo); //szyfrowanie hasla

mysql_query("INSERT INTO `uzytkownicy` (nick, email, haslo, ip) VALUES('$nick','$email','$haslo','$ip')") or die("Nie mogłem Cie zarejestrować!");

echo '<br><span style="color: green; font-weight: bold;">Zostałe¶ zarejestrowany '.$nick.'. Teraz możesz się zalogować</span><br>';
echo '<br><a href="logowanie.php">Logowanie</a>';
}
}
?>


<head>
<title>Strona główna-xMs</title>
<link rel="stylesheet" type="text/css" href="./css/index.css" />

<body>
<div id="1Pmenu">
<form method="POST" action="login.php">
<table cellpadding="0" cellspacing="0" width="180">
<tr><td><br></td></tr>
<center><strong>Logowanie:</strong></center>
<tr><td width="50"><br></td><td><input type="text" name="login" value="Login" size="30" maxlength="40"></p></td></tr>
<tr><td width="50"></td><td><input type="password" name="haslo" value="Login" size="30" maxlength="40"></td></tr>
<tr><td align="center" colspan="2"><br><input type="submit" value="Zaloguj"></p></td></tr>
</table>
<center><strong>Menu:</strong><br>
<a href="indeks.php">Forum</a><br>
<img src="images/undermenulini.jpg" alt="BELKA">
</center>
</form>
</div>

<div id="reg3">
<form method="post" action="rejestracja.php?akcja=wykonaj">
<table>
<center><strong>Rejestracja:</strong></center>
<tr class="tlo-b"><td><strong>Nick:</strong></td>
<td><input maxlength="18" type="text" name="nick" value="<?=$nick?>"></td></tr>
<tr class="tlek"><td><strong>Hasło:</strong></td>
<td><input maxlength="32" type="password" name="haslo"></td></tr>
<tr class="tlo-b"><td><strong>Powtórz hasło:</strong></td>
<td><input maxlength="32" type="password" name="vhaslo"></td></tr>
<tr class="tlo-b"><td><strong>E-mail:</strong></td>
<td><input type="text" name="email" maxlength="50" value="<?=$email?>"></td></tr>
<tr class="tlek"><td><strong>Powtórz E-mail:</strong></td>
<td><input type="text" maxlength="50" name="vemail" value="<?=$vemail?>"></span></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Zarejestruj"></td></tr>
<tr><td><center>*Strona działa poprawnie na Operze!</center></td></tr>
</div>



</table></form>
</body>


Ten post edytował x2008x 10.11.2009, 17:55:15
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: 19.07.2025 - 07:45