I have quite a few shorthand declarations for margins, padding, etc. When specifying all four, FireBug only reports the first two when the second is zero, e.g. .mymargin{margin:10px 0px 10px 0px;}
This is true whether the second is 0 or 0px.
<html>
<head>
<style type="text/css">
.ItemWithPx{z-index:4320;margin:10px 0px 10px 0px;}
.ItemWOPx{z-index:4320;margin:10px 0 10px 0;}
.divRed{background-color:red;height:40px;width:100%;}
.divYellow{background-color:yellow;width:100%}
</style>
</head>
<body>
<div class="divred">The following has margin:10px 0px 10px 0px</div>
<div class="divyellow ItemWithPx">This is a menu item</div>
<div class="divred">The following has margin:10px 0 10px 0</div>
<div class="divyellow ItemWOPx">This is a menu item</div>
<div class="divred">Bottom div</div>
<br>
</body>
</html>
From the CSS FierBug tab:
.ItemWithPx {
margin: 10px 0;
z-index: 4320;
}
.ItemWOPx {
margin: 10px 0;
z-index: 4320;
}
.divRed {
background-color: red;
height: 40px;
width: 100%;
}
.divYellow {
background-color: yellow;
width: 100%;
}
The "Q" webtools inspect element also only reports the first two. However, FireBug reports both 0px and 0 as "0", while the "Q" webtools inspect element reports both as "0px".
The good news is that all four ARE processed in FireFox - I was worried that the browser was dropping some of my CSS rule properties, but it is only in the reporting.