DevTools/CSSTips: Difference between revisions

no edit summary
No edit summary
Line 75: Line 75:


If you're not sure then go for content CSS unless you can imagine the value changing on another platform.
If you're not sure then go for content CSS unless you can imagine the value changing on another platform.
When importing your stylesheets, it's best to import the content CSS before the theme CSS, that way the theme values get to override the content values (which is probably what you want), and you're going to want them both before the global values, so your imports will look like this:
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/path/to/content/module.css " type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/path/to/theme/module.css" type="text/css"?>
For devtools CSS files then <tt>path/to/content</tt> and <tt>path/to/theme</tt> are both likely to be the string <tt>devtools</tt>.


[1] However there is probably a better way than using absolute positioning.
[1] However there is probably a better way than using absolute positioning.
Confirmed users
295

edits