aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes cross browser issues 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 "cross browser issues " Watch "cross browser issues " New topic
Author

cross browser issues

PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212

I seem to be doing all right untill I start testing my sites in different browsers. it seem to be working in IE7 but not in IE6 or firefox (different issues. I hope my code isn't half that bad)

Mozilla is more friendly , but lot of issues with IE6 .

How can i debug or change or what should the approach i need to follow ?

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Make sure the browser is in compliance mode by setting a doc type: http://www.w3.org/TR/html4/struct/global.html

Validate your mark up with the W3C validators.

Eric
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Great , thanks for the reply. I will be working on that.
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Hi Eric ,

i did not understand your answer .

Till now i did not set any DTD type for my JSP .

What do you want me to set

1.Strict
2.Transitional
3.Frameset

Please reply.
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
I would go with a Strict DTD. Read this article, it should help you a lot and it's short DTD

That won't guarantee cross-browser compliance, but it will help. There are many pitfalls related to positioning that will render different in IE and FF depending on the version you use. Read up on IE vs FF with regards to absolute, inline, etc positioning. Once you get your page structured correctly in multiple browsers then you can concentrate on how it actually looks. Post some links or CSS if you have a specific area you can't seem to get corrected.

HTH


SCJA
~Currently preparing for SCJP6
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

One word: jQuery.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
Bear.... I thought JQuery was for JavaScript? I assumed he was talking about CSS/Styling issues. What does JQuery have to do with that?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

It will handle almost all cross-browser issues, even with CSS.

And, I did not make the same assumption.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cross browser issues