Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-26-2007, 12:45 AM   PM User | #1
Squeak
New to the CF scene

 
Join Date: May 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Squeak is an unknown quantity at this point
Internet Explorer content positioning different in IE/FF

So I'm having problems getting some text and images in the footer of my site to align the same in FF2 and IE 6.

This is the site: http://www.soilsensor.com

And this is the css: http://www.soilsensor.com/global.css

At the bottom there is a footer with a copyright notice and an email icon. In FF this is centered nicely between the top and the bottom of the div. In IE6, this is pushed up against the top of the div.

At any rate, I can't figure out what is causing this. I know it's probably something simple, but you know how that goes
Squeak is offline   Reply With Quote
Old 07-26-2007, 01:16 AM   PM User | #2
zro@rtv
Regular Coder

 
zro@rtv's Avatar
 
Join Date: Feb 2005
Location: on the network
Posts: 433
Thanks: 0
Thanked 1 Time in 1 Post
zro@rtv is an unknown quantity at this point
first I recomend you take care of the errors and make it validate.

a note.
w/ xhtml, tags that do not have a 'closing tag' ... they 'self close'.... so img, mets, br, etc would be written as such:

Code:
<br /> <img src="foo.jpg" />
etc...

also theres no reason for that huge block of <br />'s... use padding or margin instead in the css!

also, don't use target="_blank" in xhtml either. If you REALLY want to control browser behavior add it client side with JS/domScripting.
__________________
._-zro
zro@redtv
zro.redtv.org

"If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
-Tim Berners-Lee, Weaving the Web, 1999
zro@rtv is offline   Reply With Quote
Old 07-26-2007, 01:31 AM   PM User | #3
koyama
Senior Coder

 
koyama's Avatar
 
Join Date: Dec 2006
Location: Copenhagen, Denmark
Posts: 1,246
Thanks: 1
Thanked 5 Times in 5 Posts
koyama will become famous soon enough
I agree with zro@rtv. You need to fix those issues.
Quote:
Originally Posted by Squeak View Post
At the bottom there is a footer with a copyright notice and an email icon. In FF this is centered nicely between the top and the bottom of the div. In IE6, this is pushed up against the top of the div.
I'm sorry, but there is a bug in IE6 that causes the line-height to be “killed” for any line box with a replaced inline element in it. In your case what is triggering the bug is the mail icon image.

Microsoft Internet Explorer: Line-height / Replaced Element Bug

I don't know any good fix for this bug, but as a workaround you can use some top padding in the footer instead of altering the line-height.

Last edited by koyama; 07-26-2007 at 01:47 AM.. Reason: typo
koyama is offline   Reply With Quote
Old 07-26-2007, 04:17 PM   PM User | #4
Squeak
New to the CF scene

 
Join Date: May 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Squeak is an unknown quantity at this point
Great, thanks for the tips. This is my first website in probably, oh... 6 years, so I'm struggling a lot to catch up on everything!
Squeak is offline   Reply With Quote
Old 07-26-2007, 04:34 PM   PM User | #5
timgolding
Senior Coder

 
timgolding's Avatar
 
Join Date: Aug 2006
Location: Southampton
Posts: 1,460
Thanks: 89
Thanked 110 Times in 109 Posts
timgolding is on a distinguished road
http://w3c.org will get you up to speed
__________________
You can not say you know how to do something, until you can teach it to someone else.
timgolding is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:22 AM.


Advertisement
Log in to turn off these ads.