Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
<p> difference in IE and FF
Old 07-31-2007, 04:22 PM <p> difference in IE and FF
Junior Talker

Posts: 1
Name: Joel
Trades: 0
When html, body marginTop = 0, the first <p> in IE starts on line one but in Firefox in line two. Could someone explain this to me? Does someone have a way to redefine in Firefox NOT to start it on line two?


<head>


.....
<title>BLAH BLAH BLAH</title>
<style type="text/css">
<!--
html, body {
margin-top: 0px;
}
-->
</style>
</head>
<body>
<body>
<p>This is on line ONE in IE but line TWO in Firefox</p>
</body>
.....

However, if you put any text in front, they both behave the same:

.....
<body>
Example 1 of a Responsive Interaction (one-on-one)
<p>This is okay. (It's on line THREE in both IE and Firefox.)</p>
</body>
.....

TIA,
Joel

Last edited by jpbatmpi; 07-31-2007 at 05:54 PM..
jpbatmpi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-31-2007, 05:17 PM Re: <p> difference in IE and FF
highanddry's Avatar
Close Talker

Posts: 880
Name: Jacob
Trades: 0
I try a range of
&nbsp;

</br>

and </p>

for spacing.

I don't know if thats frowned upon but I have made both browsers display very similarly with one css reference
highanddry is offline
Reply With Quote
View Public Profile
 
Old 07-31-2007, 07:21 PM Re: <p> difference in IE and FF
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You've got two <body> tags in your first example. Maybe that's it.

Also, I usually explicitly define my paragraphs:
Code:
p {
     margin: 0 0 1em 0;
     padding: 0;
}
This will make paragraphs appear the same across the board.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to <p> difference in IE and FF
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.79940 seconds with 12 queries