Margen específico de Firefox? [cerrado]


¿Cómo puedo establecer un margen específico para Firefox en CSS? He intentado-moz-margin: 0px;

Mi problema está en todos los navegadores, incluso IE funciona,

Pero firefox falla en mi CSS ahora... Hay ciertos enlaces que se mueven como 1px a la izquierda cuando los vuelco...

Author: AstroCB, 2011-07-18

3 answers

Tu problema probablemente esté en otro lugar, pero así es como te diriges solo a Firefox:

@-moz-document url-prefix() {
    a {
        margin: 0;
    }
}
 64
Author: wanovak,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-07-18 18:04:58

Puedes probar algo como esto:

@-moz-document url-prefix() { //Your css here }

Que solo será leído por Firefox.

Fuente

 17
Author: Stanley Cup Phil,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-07-18 18:06:40

Para responder directamente a su pregunta:

.myElement, x:-moz-any-link, x:default {
    margin: 0px;
}

Esto establecerá todos los elementos con la clase 'myElement' a un margen 0px solo dentro de firefox.

 8
Author: Aedaeum,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-07-18 18:08:23