Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IE7 and FF2

 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm using JSF, in IE7 I'm using the tag <div style="text-align: center;"> and the output is fine, however in FF2 only 'pure text' [i.e. text with no border etc..] is centered, anything else seems to be ignore..

Any pointers on how I could tackle this?

Thanks in advance
Zein
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Play with this:



Eric
[ December 12, 2007: Message edited by: Eric Pascarello ]
 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

Thanks for your input.

Your solution worked. Interesting thing.. when I updated my CSS I put the code for IE7 first, then FF2, it worked fine for FF2 but woulldnt work for IE7, I changed it around - and everything seemed to slot into place.

Any idea why?

Thanks
Zein
 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, guys, I think I spoke too soon.

my code is

Whichever browser comes second, works fine - so in the code above, FireFox works, and IE7 doesn't.

What can I do to fix this?

Regards
Zein
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HMMM...put this second

_text-align: center;

I do not like that...might work. Try looking around the net. with the moz line in a search. You might be bale to turn something up. I am too busy today to investigate it.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic