Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding alignment problem

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't.
 
Greg Charles
Sheriff
Posts: 2989
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be clear: conditional comments need to go into the HTML, not into the CSS.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic