Hello
I've been working on a small website for a friend's business. The pages look and work as I intended on all platforms with the exception of the iPhone 4 - the work phone my friend has. I've attached a picture of the Submit/Cancel buttons on the contact form. The Submit button is far too rounded - it should be as the Cancel one is.
Here is the HTML for that particular piece:
[pre]
<form action="scripts/contact.php" method="post" enctype="multipart/form-data">
<label></label>
<input name="first_name" type="text" required="required" placeholder="Name" />
<label></label>
<input name="email" type="email" required="required" placeholder="Email Address" />
<label></label>
<input name="telephone" type="text" required="required" placeholder="Telephone Number" />
<label></label>
<textarea name="comments" cols="20" rows="5" required="required" placeholder="Message"></textarea>
<input id="submit" name="submit" type="submit" value="Submit"/>
<input id="cancel" name="cancel" value="Cancel"/>
</form>
[/pre]
I can see straight away that there is no "type" attribute for the Cancel button, however if I try using a "reset" type then it actually cuts off the button so it's only half displayed (all platforms).
The CSS for the buttons are as follows:
[pre]
#submit {
/* background:url(images/submit.png); */
font-family: "Lato", Helvetica, sans-serif;
width:127px;
height:48px;
text-align: center;
/* text-indent:-9999px; */
border-radius:0.25em;
border:none;
margin-top:20px;
cursorointer;
}
/* Styles the submit hover */
#submit:hover {
color:#ffffff;
background-color: #ff0000;
opacity:0.9;
}
/* Styles the cancel button*/
#cancel {
/* background:url(images/cancel.png); */
font-family: "Lato", Helvetica, sans-serif;
width:107px;
height:28px;
text-align: center;
/* text-indent:-9999px; */
border-radius:0.25em;
border:none;
margin-top:20px;
cursorointer;
}
/* Styles the cancel hover */
#cancel:hover {
color:#ffffff;
background-color: #ff0000;
opacity:0.9;
}
[/pre]
Again the button sizes are different in the CSS because if I make them the same in the CSS, then one is bigger than the other in the actual page.
If anyone can shed some light on this, I'd be very grateful.
thank you for helping
____________
Pendle
I've been working on a small website for a friend's business. The pages look and work as I intended on all platforms with the exception of the iPhone 4 - the work phone my friend has. I've attached a picture of the Submit/Cancel buttons on the contact form. The Submit button is far too rounded - it should be as the Cancel one is.
Here is the HTML for that particular piece:
[pre]
<form action="scripts/contact.php" method="post" enctype="multipart/form-data">
<label></label>
<input name="first_name" type="text" required="required" placeholder="Name" />
<label></label>
<input name="email" type="email" required="required" placeholder="Email Address" />
<label></label>
<input name="telephone" type="text" required="required" placeholder="Telephone Number" />
<label></label>
<textarea name="comments" cols="20" rows="5" required="required" placeholder="Message"></textarea>
<input id="submit" name="submit" type="submit" value="Submit"/>
<input id="cancel" name="cancel" value="Cancel"/>
</form>
[/pre]
I can see straight away that there is no "type" attribute for the Cancel button, however if I try using a "reset" type then it actually cuts off the button so it's only half displayed (all platforms).
The CSS for the buttons are as follows:
[pre]
#submit {
/* background:url(images/submit.png); */
font-family: "Lato", Helvetica, sans-serif;
width:127px;
height:48px;
text-align: center;
/* text-indent:-9999px; */
border-radius:0.25em;
border:none;
margin-top:20px;
cursorointer;
}
/* Styles the submit hover */
#submit:hover {
color:#ffffff;
background-color: #ff0000;
opacity:0.9;
}
/* Styles the cancel button*/
#cancel {
/* background:url(images/cancel.png); */
font-family: "Lato", Helvetica, sans-serif;
width:107px;
height:28px;
text-align: center;
/* text-indent:-9999px; */
border-radius:0.25em;
border:none;
margin-top:20px;
cursorointer;
}
/* Styles the cancel hover */
#cancel:hover {
color:#ffffff;
background-color: #ff0000;
opacity:0.9;
}
[/pre]
Again the button sizes are different in the CSS because if I make them the same in the CSS, then one is bigger than the other in the actual page.
If anyone can shed some light on this, I'd be very grateful.
thank you for helping
____________
Pendle