File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes IE7 and  FF2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IE7 and  FF2" Watch "IE7 and  FF2" New topic
Author

IE7 and FF2

Zein Nunna
Ranch Hand

Joined: Mar 31, 2005
Posts: 245
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
Play with this:



Eric
[ December 12, 2007: Message edited by: Eric Pascarello ]
Zein Nunna
Ranch Hand

Joined: Mar 31, 2005
Posts: 245
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

Joined: Mar 31, 2005
Posts: 245
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IE7 and FF2
 
Similar Threads
setInterval and clearInterval functions
Does Anybody knows..about Google..
opening new window in jsp
iframe with backward and forward navigation arrows, open new window from iframe
center a div inside a div