Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Difference between IE & FF DIVs
Closed Thread
Old 03-19-2008, 12:21 PM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2006

Posts: 27

bukwus is on a distinguished road

Default Difference between IE & FF DIVs

Hi

Has anyone come across the difference in results between IE and Firefox when placing a regular DIV below two DIVs floating next to each other? When trying to put space between the floating DIVs and the regular one I always get different results. I've used <br clear="all" on the page and I've used margin-top, margin-bottom as well as clear:both; in CSS. If anyone knows how to get around this difference, let me know.

Examples:

Code:
<div style="float:left; width:50%;">
Float left
</div>

<div style="float:right; width:50%;">
Float right
</div>

<div style="width:100%; margin-top:30px;">
Content content content content content content content content  content content content content content content content content content content content
</div>
and

Code:
<div style="float:left; width:50%; margin-bottom:30px;">
Float left
</div>

<div style="float:right; width:50%; margin-bottom:30px;">
Float right
</div>

<div style="width:100%;">
Content content content content content content content content  content content content content content content content content content content content
</div>
and

Code:
<div style="float:left; width:50%;">
Float left
</div>

<div style="float:right; width:50%;">
Float right
</div>

<div style="width:100%; clear:both; margin-top:30px;">
Content content content content content content content content  content content content content content content content content content content content
</div>
Many thanks
bukwus is offline  
Old 03-22-2008, 06:36 PM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,690

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Difference between IE & FF DIVs

They look the same to me, in Firefox and IE1.6
__________________

Need website help? PM me!
CrazeD is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats the difference between espresso and coffee? KCRMYZ Off Topic Discussion 10 10-07-2007 06:11 PM
Difference between core 2 duo and quadcore tommore Building, Buying, Upgrading for General PCs 5 10-05-2007 04:17 PM
Difference between Q6600 and QX6700 Sydzy Building, Buying, or Upgrading High Performance PC Systems 19 09-10-2007 03:56 PM
difference between e6600 and e6320 siddanth3 Building, Buying, or Upgrading High Performance PC Systems 16 05-22-2007 12:39 AM