aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Regarding alignment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Regarding alignment problem" Watch "Regarding alignment problem" New topic
Author

Regarding alignment problem

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144
Hi,
I have created some .css file which is supporting by IE but not supporting by Mozilla, Could you please tell me how to find the browser in .css file?

Thanks,
Santhosh Kumar V.K
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Your question is like going to the doctor and saying I have a problem with my head without letting him see your head.

You need to show code and point out exact issues you have.
santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144
my question is how to get the browser version or Browser in .css file like IE 6 or IE 8 or Mozilla or opera.

Thanks,
santhosh Kumar V.K
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

You don't.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2771
    
  10

I'm probably about to step into something, but you can have conditional comments in IE, like:



Into that you could define styles or link to a style sheet specific to IE 7 to override styles meant for a standards-based browser. It would look like a comment to any other browser, so would be ignored. However, tricking various versions of IE into rendering things consistently is a complex art form, and I'm just a novice.
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 269
    
    4

To be clear: conditional comments need to go into the HTML, not into the CSS.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

Before resorting to browser detection, I'd verify that your CSS is first rate. I have very little problem getting basic CSS to display properly across browsers.

More advanced stuff is, of course, limited to modern browsers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding alignment problem
 
Similar Threads
Can struts block my css Stylesheet?
Wrapping of select box
layout and multibrowser hell
consistent font size across the project?
tag handling