471,896 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,896 software developers and data experts.

firefox vs explorer iframes

I added an Iframe to one of the websites i created but the iframe looks weird in firefox. I want the title WELCOME to be at the top left of the iframe but for some reason it creates a space in firefox. here's my website www.escamillalaw.com .


<style type="text/css">
.title {font-size:49px; color:red}
<DIV style="position: absolute; top:1px; left:1px; width:328px; height:15px; border:0px solid black;">
<span class="title"><p align="justify"> Welcome
Aug 14 '07 #1
3 2463
7,435 Expert 4TB
The problem, as always, is IE. It's not applying margins properly (margin collapse). It's best to control your margins by applying zero to everything, *{margin:0} and then setting it manually.

To avoid further problems with IE, you need a proper doctype. See the article about doctypes above. Also, validate your markup. You have 53 html errors and one CSS error.

When you have problems comparing IE and FF again, you should use FF as your reference because IE will be the problem in almost all cases.
Aug 14 '07 #2

I know its the wrong discussion but I also have a problem with the PHP coding with a form.

<form method="post" action="thanks.php">
Name:<br> <input name="nombre" type="text" frameborder=0 STYLE="background: white; border: 1px blue solid;"/><br />
Phone:<br><input name="phone" type="text" frameborder=0 STYLE="background: white; border: 1px blue solid;"/><br />
Email: <br><input name="email" type="text" frameborder=0 STYLE="background: white; border: 1px blue solid;"/><br />
Describe Case or Situation:<br />
<textarea name="comments" rows="7" cols="20" frameborder=0 STYLE="background: white; border: 1px blue solid;"></textarea><br />
<input type="submit" value="send"/>




$name = $_REQUEST['nombre'];
$phone = $_REQUEST['phone'];
$email = $_REQUEST['email'];
$comments = $_REQUEST['comments'];
$msg = " Name: $name\n";
$msg .= " Phone: $phone\n";
$msg .= " Email: $email\n";
$msg .= "Case Description:

$recipient = "Myemailaddress@mydomain.com";
$subject = "Quick Contact";
mail($recipient, $subject, $msg);

<font size="7">Thank You</font>



The email is sent when i use it on explorer but when i test it on firefox it doesn't do anything. I'm not very experienced with PHP at all so I pretty much looked for an email code and adapted it for my page.
Aug 14 '07 #3
7,435 Expert 4TB
You are using xhtml end tags, the />, but haven't declared xhtml. In fact, without a doctype, you are telling everyone you are in 1998, but I don't think that's the problem.

Know nothing about PHP so you'll have to ask your question there.
Aug 14 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by mike | last post: by
1 post views Thread by doug s | last post: by
19 posts views Thread by k.karthikit | last post: by
6 posts views Thread by Valued Customer | last post: by
reply views Thread by kvi | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.