Text alignment differences between Mozilla and IE

  • Ads

Text alignment differences between Mozilla and IE

Postby crit22324 » Thu May 12, 2011 1:26 am

Hello all!

I've put up a website with a picture on the index page, and text under the picture. It's meant to be aligned with the picture, exactly the picture's width and lining up with the picture's edges.

On Mozilla, it's just the way I want it; on IE, it's all messed up.

Of course, it's exactly the same HTML. It seems there must be a difference in the way that IE and Mozilla perceive (or interpret) the same HTML.

Has anyone here ever encountered this before?
crit22324
Name: Joe Unfried
Sprout
 
Posts: 6
Joined: Fri Oct 22, 2010 7:13 pm

Re: Text alignment differences between Mozilla and IE

Postby aburt » Thu May 12, 2011 3:37 pm

Heh, I see that all the time. So frustrating. And don't forget to check it in Chrome, and all the other common versions of IE in use (6,7,8,9). Safari too, for good measure, though it's often the same as Chrome.

How are you trying to get them aligned?

I'd probably use DIVs to get the alignment problem solved. (Though I confess that with DIVs so broken in IE6, and enough people still using it, I've often resorted to using tables out of frustration. Ugly as the concept is, I find it usually works.) :)
User avatar
aburt
Name: Andrew Burt
Tree
 
Posts: 311
Joined: Sat Oct 17, 2009 4:59 am

Re: Text alignment differences between Mozilla and IE

Postby crit22324 » Fri May 13, 2011 7:18 pm

Wow, I didn't even think of Chrome . . . I'll be sure to try that! Thanks!
crit22324
Name: Joe Unfried
Sprout
 
Posts: 6
Joined: Fri Oct 22, 2010 7:13 pm

Re: Text alignment differences between Mozilla and IE

Postby crit22324 » Mon May 16, 2011 5:14 pm

The index page looks fine in Chrome as well. Argh, it looks like I'm going to have to resort to using a table!!
(shudders)
crit22324
Name: Joe Unfried
Sprout
 
Posts: 6
Joined: Fri Oct 22, 2010 7:13 pm

Re: Text alignment differences between Mozilla and IE

Postby RuntyUnicorn » Fri Jun 10, 2011 9:47 pm

I've never understood why folks don't like tables. They work. :) Especially for situations like this!

Make sure you call out what version of HTML you are using in your DOCTYPE. That might help. You can also use an HTML checker to see if your HTML is good.
User avatar
RuntyUnicorn
Name: A. J. Mack
Sprout
 
Posts: 3
Joined: Fri Jun 10, 2011 9:01 pm
Location: Seattle, WA

  • Ads

Return to Website Design

cron