473,480 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

firefox vs explorer iframes

15 New Member
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 .

Ramon



<html>
<head>
<style type="text/css">
<!--
.title {font-size:49px; color:red}
-->
</style>
</head>
<body>
<DIV style="position: absolute; top:1px; left:1px; width:328px; height:15px; border:0px solid black;">
<span class="title"><p align="justify"> Welcome
</span></p>
</DIV
</body>
</html>
Aug 14 '07 #1
3 2495
drhowarddrfine
7,435 Recognized Expert Expert
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
tequilamala
15 New Member
Thanks...

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

default.htm
<html>
<body>
<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"/>
</form>

</body>
</html>




thanks.php

<html>
<body>

<?php
$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:

$comments\n";
$recipient = "Myemailaddress@mydomain.com";
$subject = "Quick Contact";
mail($recipient, $subject, $msg);
?>

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

</body>

</html>



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
drhowarddrfine
7,435 Recognized Expert Expert
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

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

Similar topics

6
6073
by: mike | last post by:
I have a page that uses a some javascript and it works fine in IE but fails to work in Firefox. Basically what I'm trying to do is have 3 iframes on a page but only displaying one of them at a...
1
1439
by: doug s | last post by:
i have a code snippet i pasted below, which works in IE, but not in firefox. any help would be really appreciated. thanks. <script language="JavaScript"> var url =...
0
1263
by: William LaMartin | last post by:
I have recently started checking how accessible my web sites are to the Pocket PC using Pocket Internet Explorer (PIE). The main trouble I have discovered is with aspx pages in which I use an...
19
10517
by: k.karthikit | last post by:
Hello all, In some hidden variable (<input type="hidden" name="hiddenId" value="test" /> ,i stored some value.I accessed the value "test" using var id = document.getElementById( 'hiddenId' );...
6
14992
by: Valued Customer | last post by:
Hello, I'm really at a loss here. I have the following index.html: <div align="center"> <iframe src="left.htm" width="15%" height="100%" frameborder="0" name="left" target="contents">...
1
10368
by: Dave | last post by:
Usual apologies if this is old territory. I'm resizing a bunch of iframes on a page to the height of their contained documents. Some of the contained documents contain IMG tags. On IE this...
4
2464
by: srivaths | last post by:
hi all. i am new to this site and this is my first post. though the question i am gonna ask is discussed earlier i need some help in this. i have been doing a internal site for my company and am...
0
1196
by: kvi | last post by:
Does anybody knows if firefox works properly with iframes? My interface consists of two nested iframes. It shows perfectly in IE. The same interface looks like a double ( duplicated) external...
0
7049
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6912
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7052
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7092
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6744
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4790
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.