Topic: Neskaito CSS nors tu ką
Vėl išnaršiau visą internetą ir niekur neradau atsakymo, todėl kreipiuosi į Jus.
Taigi kuriu TVS... Viskas veikė kuo puikiausiai, kol nenusprendžiau jos padailinti.
Sukūriau registracijos formą faile registracija.php. Formos gale yra mygtukas, kurį paspaudus duomenys siunčiami į duomenų bazę. Mygtukui priskyriau klasę (class='button'), tačiau jos neskaito.
Mano style.css failas yra įterptas į header.php, kuris includintas registracija.php faile. Niekur nesuprantu, kur gali būti klaida.
Bandau nupastinti kodos gabalus:
REGISTRACIJA.PHP KODO GABALAS:
echo"<form action='registracija.php' method='post'>
<table align='center' cellpadding='1' cellspacing='1' width='500'>
<tr>
<td width='120'><b>Vartotojo Vardas:</b></td>
<td><input type='text' name='user_pseuduonimas' value='' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td width='120'><b>Slaptažodis:</b></td>
<td><input type='password' name='user_password' value='' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td width='120'><b>Pakartokite Slaptažodį:</b></td>
<td><input type='password' name='user_slaptazodis_2' value='' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td width='120'><b>Vardas:</b></td>
<td><input type='text' name='user_vardas' value='' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td width='120'><b>Pavardė:</b></td>
<td><input type='text' name='user_pavarde' value='' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td width='120'><b>El. Pašto Adresas:</b></td>
<td><input type='text' name='user_email' value='' class='textbox' style='width:380px;'></td>
</tr>
<tr>
<td colspan='2'><input type='submit' name='registruotis' value='Registruotis!' class='button'></td>
</tr></table></form>";
STYLE.CSS KODO GABALAS:
.button {
background-color: #6387B7;
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#000000;
background-color:#D0D0D0;
border:1px #3F5A7F solid;
margin-top:2px;
}.textbox {
background-color: #6387B7;
}
HEADER.PHP KODO GABALAS:
<?php
require_once THEME."theme.php";
// Meta Tags
echo "<!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'>
<head>
<meta http-equiv='Content-Type' content='application/xml+xhtml; charset=utf-8' /> <!-- Set the encoding to unicode and make it XHTML 1.0 -->
<title>Ever Music - The Best Music on the Net!</title>
<link rel='stylesheet' type='text/css' href='theme/style.css' />
</head>";
Kaip atrodo pati forma:
http://www.ever-music.com/wision/registracija.php