Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » CSS issue between IE and Firefox
Closed Thread
Old 05-21-2007, 02:51 PM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2006

Posts: 27

bukwus is on a distinguished road

Default CSS issue between IE and Firefox

Hello
I've begun designing pages with DIVs instead of tables and I've found that in Firefox, when you float two or more DIVs next to each other and then place another DIV with margin-top below the floated DIVs, the margin is ignored while in IE it is observed. Is there a way around this?
Here's the code:

DIV {
margin-top:10px;
}

.column {
float:left;
}

.third {
width:32%;
}

.coloredTextBox {
padding:2px;
background-color:#575F90;
color:#ffffff;
font-weight:bold;
clear:both;
font-size:110%;
}


<div class="column third">
content
</div>

<div class="column third">
content
</div>

<div class="column third">
content
</div>

<div class="coloredTextBox">By Agency</div>
bukwus is offline  
Old 05-21-2007, 09:16 PM   #2 (permalink)
 
True Techie

Join Date: Mar 2006

Posts: 135

NathanLedet

Default Re: CSS issue between IE and Firefox

Can you post screen shots of FF and IE? I'm not quite understanding

I tested that code in FF and IE with the 10px margin in and out. I noticed a difference when it was there and when it wasn't, both in FF and IE...so based on the code you've provided, it works for me.

Screen shots would help.
NathanLedet is offline  
Old 06-07-2007, 02:55 PM   #3 (permalink)
 
Newb Techie

Join Date: Sep 2006

Posts: 27

bukwus is on a distinguished road

Default Re: CSS issue between IE and Firefox

Quote:
Originally Posted by NathanLedet View Post
Can you post screen shots of FF and IE? I'm not quite understanding

I tested that code in FF and IE with the 10px margin in and out. I noticed a difference when it was there and when it wasn't, both in FF and IE...so based on the code you've provided, it works for me.

Screen shots would help.
Hi Nathan
Thanks for the reply on my post. I added a chunk of margin-top to the div under the three floating divs and it shows up on IE and not FF. Here are the links:
Small Biz FREE Help
http://www.bdki.com/buzg8.org/test.css

Just in case it's a machine issue, I'm on a PC running Windows XP. If you still need screen shots let me know, I'll send them your way.

Many thanks

Andy
bukwus 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
Firefox 3 Alpha 4 has been released Osiris Windows Operating Systems and Software 4 04-29-2007 10:57 AM
mouse issue hdansjr Hardware Troubleshooting 3 04-28-2007 11:23 AM
Firefox Also Vulnerable To .ANI Exploits Osiris Browser & General Internet Questions 1 04-06-2007 01:14 PM
Bookmarks in Firefox ! weswes Browser & General Internet Questions 2 04-06-2007 01:07 PM
Has IE7 Turned Back Firefox? Osiris Browser & General Internet Questions 0 03-30-2007 04:06 PM