Posted by Majki Majk on 12/20/07 01:41
>
> I think the problem is with your HTML page - please post the contents
> here.
@Rob hey! Here is the html content...
<form id="comments_form" action="emailform.php" method="post">
<fieldset>
<legend align="center">Vasi Kontaktni Detalji</legend>
<p align="center">
<label for="author">Ime: <em class="required">(Potrebno)</em></label>
<input name="author" id="author" type="text" />
</p>
<p align="center">
<label for="email">E-postanska Adresa:</label>
<input name="email" id="email" type="text" />
</p>
<p align="center">
<label for="url">Web Adresa:</label>
<input name="url" id="url" type="text" />
</p>
</fieldset>
<fieldset>
<legend align="center">Komentari</legend>
<p align="center">
<label for="text">Poruka: <em class="required">(Potrebno)
</em></label>
<textarea name="text" id="text" cols="20" rows="10">
</textarea><br><br>
<input type="submit" id="submit1" name="submit1" value="Posalji" >
</p>
</fieldset>
</form>
AND THE .CSS PART....
/* KONTAKT FORMA*/
form {
font-size: 1.4em;
width: 25em;
}
/* fieldset styling */
fieldset {
margin: 1em 0; /* space out the fieldsets a little*/
padding: 1em;
border : 1px solid #ccc;
}
/* legend styling */
legend {
font-weight: bold;
}
#comments_form {
margin-left: 55px ;
margin-top: -35px;
}
/* style for labels */
label {
display: block;
}
/* style for required labels */
label .required {
font-size: 0.75em;
color:#760000;
}
input {
width: 200px;
}
input.radio, input.submit {
width: auto;
}
/* style form elements on focus */
input:focus, textarea:focus {
background: #ffc;
}
input.radio {
float: left;
margin-right: 1em;
}
textarea {
width: 300px;
height: 100px;
}
/* Hack to make sure the floated radio buttons
sit next to the labels correctly in IE/Mac*/
/* This is the style I want IE/Mac to see */
input.radio + label {
text-indent: 2em;
}
/* Using the commented backslash filter, I'm resetting
the above rule for everything other than IE5/Mac \*/
input.radio + label {
text-indent: 0;
}
/* End the hack */
Navigation:
[Reply to this message]
|