Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

how to use Firefox inspector

  • 5 wótegrona
  • 1 ma toś ten problem
  • 3 naglědy
  • Slědne wótegrono wót malcolmi

more options

I am using Firefox inspector to debug my style sheets. I have the Rules tab open in right sidebar. If I highlight a line of html then sidebar shows all style rules that apply to the highlighted element. Some of the style sheets I recognise as mine but also there is an entry tagged

(user agent) html.css

with a rule I don't recognise (and is messing up my page layout by adding a left margin). The page layout displays incorrectly not only in Firefox but also in another browser (Safari). Where might this extra rule come from and how can I eliminate it?

Help would be much appreciated, thanks.

- Malcolm

I am using Firefox inspector to debug my style sheets. I have the Rules tab open in right sidebar. If I highlight a line of html then sidebar shows all style rules that apply to the highlighted element. Some of the style sheets I recognise as mine but also there is an entry tagged (user agent) html.css with a rule I don't recognise (and is messing up my page layout by adding a left margin). The page layout displays incorrectly not only in Firefox but also in another browser (Safari). Where might this extra rule come from and how can I eliminate it? Help would be much appreciated, thanks. - Malcolm

Wubrane rozwězanje

html.css is one of the default style sheets that are added via the DOCTYPE setting.

  • resource://gre-resources/html.css
Toś to wótegrono w konteksće cytaś 👍 1

Wšykne wótegrona (5)

more options

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0

The above is your user agent information since did not share is all the info.

Do you have a local file of that name html.css  ? Have you searched ? Did something get enabled in settings ?

more options

Wubrane rozwězanje

html.css is one of the default style sheets that are added via the DOCTYPE setting.

  • resource://gre-resources/html.css
more options

Thanks to Pkshadow and cor-el for their comments.

No I don't have a local html.css file and my settings are not the problem. The element that was giving trouble was <figure> and last night I woke up realising that my problem was that I didn't have a <figure> entry in my reset.css file, setting all margins to zero.

cor-el's information is interesting. I was not aware of this resource and it does indeed contain the style rule that was corrupting my layout. So this file contains a browser's default style information?

more options

Yes, some user agent sheets are loaded by default and some are loaded in special cases.

See also:

more options

Hi cor-el, thank you for this useful information on a topic I knew nothing about before. - Malcolm