Rozwalony formularz

HTML to podstawy w dziedzinie tworzenia stron WWW, Style CSS warto opanować, bowiem za ich pomocą można dostosować odpowiednio wygląd swojej witryny WWW. Zagłębiamy się dalej i udostępniamy w tym forum możliwość zadawania pytań o JavaScript.
ODPOWIEDZ
Hooch
Posty: 1
Rejestracja: wt maja 11, 2010 5:05 pm

Rozwalony formularz

Post autor: Hooch »

Witam.
Mam na stronie formularz.
Strona jest w trakcie budowy.
Chce zaprojektować prosty formularz ale jak wstawię do niego pole "file" to w Google chrome się wszystko tozwala. I dodatkowo formulaż wygląda jakoś tak dziwnie pod IE.

Kod: Zaznacz cały

<!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="text/html; charset=utf-8" /> 
<title>Portfolio - Login</title> 
<link href="styles/main.css" rel="stylesheet" type="text/css" /> 
</head> 
 
 
<body> 
 
<div id="wrapper"> 
  <div id="header"> 
  <div id="menu_top"> 
    <a href="index.php" title="Home Page">Home Page</a> 
    <a href="contact.php" title="Contact">Contact</a> 
    <a href="index.php" title="Links">Links</a> 
  </div> 
</div> 
  <h2>Admin Panel</h2> 
    <form action="table_update.php" method="post" name="category_creation" target="_self"> 
<label>Name:</label><input name="category_name" type="text" size="25" /> 
<label>Priority:</label><input name="category_priority" type="text" size="3" maxlength="3" /> 
<label>Image:</label><input name="category_image" type="file" size="25" /> 
</form>  <form action="login.php" method="get" target="_self"> 
  <input name="action" type="hidden" value="logout" /> 
  <label>Logout:</label><input name="logout" type="submit" value="Logout" /> 
  </form> 
    <div id="footer"> 
© Copyright @ Maciej Kusnierz 2010
<a href="login.php" target="_self">Admin Panel</a><br /> 
<a href="login.php?action=logout" target="_self">Logout</a> 
</div></div> 
</body> 
</html>

Kod: Zaznacz cały

@charset "utf-8";

/* CSS Document */

body {
	background-color: #383838;
	color: #E3E3E3;
	font-size: 14px;
	font-style: normal;
	line-height: 115%;
	font-weight: normal;
	font-variant: normal;
}
div {
	display: block;
}
#wrapper {
	width: 750px;
	margin: auto;
	overflow: hidden;
}
#header {
	height: 125px;
	width: 740px;
	margin-top: 15px;
	margin-right: auto;
	margin-bottom: 20px;
	margin-left: auto;
	background-image: url(../images/logo.png);
	background-repeat: no-repeat;
	position: relative;
}
#image_menu {
	margin-right: auto;
	margin-left: auto;
	width: 730px;
	padding-top: 20px;
	padding-right: 10px;
	padding-bottom: 20px;
	padding-left: 10px;
	overflow: hidden;
}
#menu_image {
	background-color: #202020;
	margin: 10px;
	padding: 1px;
	height: 320px;
	text-align: center;
	display: block;
	float: left;
	width: 340px;
}
#image_menu #menu_image p {
	font-size: 15px;
	line-height: 19px;
	letter-spacing: 2px;
	height: 23px;
	padding-top: 1px;
	text-transform: uppercase;
	padding-bottom: 2px;
}


#footer {
	color: #555;
	width: 730px;
	margin-top: 10px;
	margin-bottom: 10px;
	padding-right: 10px;
	padding-left: 10px;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #444;
	border-right-color: #444;
	border-bottom-color: #444;
	border-left-color: #444;
	clear: both;
}



* {
	margin: 0px;
	padding: 0px;
	border: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
#header #menu_top {
	width: 740px;
	margin-right: auto;
	margin-left: auto;
	height: 40px;
	position: absolute;
	bottom: 0px;
}
#header #menu_top a {
	font-size: 12px;
	font-style: normal;
	line-height: 15px;
	font-weight: normal;
	font-variant: small-caps;
	color: #ABABAB;
	letter-spacing: 2px;
	list-style-type: none;
	cursor: auto;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #999;
	height: 15px;
	float: left;
	width: 120px;
	margin-top: 10px;
	padding-left: 15px;
	display: block;
	text-decoration: none;
}
#header #menu_top a:hover {
	text-decoration: none;
	color: #CCC;
}
#single_image_in_menu {
	background-color: #202020;
	padding: 1px;
	height: 315px;
	text-align: center;
	display: block;
	float: left;
	width: 130px;
	margin-top: 6px;
	margin-right: 6px;
	margin-bottom: 20px;
	margin-left: 6px;
}
#single_image_in_menu p {
	font-size: 11px;
	line-height: 17px;
	letter-spacing: 2px;
	height: 17px;
	padding-top: 1px;
	text-transform: uppercase;
	padding-bottom: 2px;
	background-color: #202020;
}
h2 {
	background-color: #202020;
	clear: both;
	color: #CCC;
	display: block;
	font-size: 15px;
	font-weight: bold;
	font-variant: small-caps;
	letter-spacing: 1px;
	line-height: 20px;
	margin-bottom: 10px;
	margin-top: 0px;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 10px;
	width: 710px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
#gallery_wrapper {
	width: 730px;
	padding-top: 0px;
	padding-right: 10px;
	padding-bottom: 20px;
	padding-left: 10px;
	overflow: hidden;
	margin: 0px;
}
#gallery_wrapper p {
	margin-top: 10px;
	margin-right: 5px;
	margin-bottom: 10px;
	margin-left: 5px;
}
#gallery_wrapper #image{
	margin: 15px;
	width: 700px;
}
h3 {
	background-color: #202020;
	clear: both;
	color: #CCC;
	display: block;
	font-size: 12px;
	font-weight: bold;
	font-variant: small-caps;
	letter-spacing: 2px;
	line-height: 20px;
	margin-bottom: 10px;
	margin-top: 10px;
	padding-top: 3px;
	padding-right: 10px;
	padding-bottom: 3px;
	padding-left: 10px;
	width: 710px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	margin-right: 0px;
	margin-left: 0px;
	height: 16px;
}
#wrapper form input{
	margin-bottom: 15px;
	background-color: #333;
	color: #CCC;
	font-family: Verdana, Geneva, sans-serif;
	border: 1px solid #000;
	resize: none;
	display: block;
}
#send_button {
}

#wrapper form label {
	width: 120px;
	float: left;
}
#wrapper form {
	padding-left: 15px;
	width: 500px;
	float: left;
}

#contact_info {
	float: left;
	width: 215px;
}
#contact_info p {
	padding-bottom: 20px;
	display: block;
}
#send_errors {
	padding-left: 15px;
}
#footer a {
	text-decoration: none;
	color: #555;
	float: right;
}
form #radio {
	margin-bottom: 15px;
	background-color: #333;
	color: #CCC;
	font-family: Verdana, Geneva, sans-serif;
	border: 1px solid #000;
	resize: none;
	display: block;
}
#wrapper form select {
	margin-bottom: 15px;
	background-color: #333;
	color: #CCC;
	font-family: Verdana, Geneva, sans-serif;
	border: 1px solid #000;
	resize: none;
	display: block;
	width: 100px;
}
.hiding_forms {
	margin: 0px;
	padding: 0px;
}
#wrapper form textarea {
	margin-bottom: 15px;
	background-color: #333;
	color: #CCC;
	font-family: Verdana, Geneva, sans-serif;
	border: 1px solid #000;
	resize: none;
	display: block;
}


form   #send_button{
	margin-bottom: 15px;
	background-color: #333;
	color: #0FF;
	font-family: Verdana, Geneva, sans-serif;
	border: 1px solid #000;
	resize: none;
	display: block;
	width: 150px;
	font-size: 14px;
	font-variant: small-caps;
}

Z góry dziękuje za pomoc.
ODPOWIEDZ