Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to specify seperate Firefox and IE height?

Tags:

css

firefox

I have two tables that need to line up side by side. In order to achieve this I have to specify a td height.

In IE the height should be 2.1em. In Mozilla it needs to be 1.76em.

There does not appear to be a

-moz-height:1.76em;

Any idea how I can achieve my goal?

like image 965
P.Brian.Mackey Avatar asked Dec 12 '22 10:12

P.Brian.Mackey


2 Answers

You can put the IE height into a separate stylesheet and load it after the default one, using IE-conditional comments so the other browsers ignore it. Otherwise, you can use jQuery to change the height after it's loaded (if ($.browser.msie))

like image 105
codecraftnap Avatar answered Jan 07 '23 01:01

codecraftnap


Yes it is. For Fire Fox do this:

@-moz-document url-prefix() {
    //Your css here
    #my-id { font-size: 100%; }
}

For IE you can do something like this:

[if IE 8]><link rel="stylesheet" href="DefaultSTyleForIE8.css" type="text/css" media="screen, projection"/><![endif]

This css will only work for IE 8

like image 36
Soatl Avatar answered Jan 07 '23 03:01

Soatl