css - csslint - broken box model -


i've used csslint stylesheets , 1 warning don't understand.

consider css code:

div {     width: 50px;     height: 50px;     border: 1px solid; } 

csslint says following: "broken box model: using height border." "broken box model: using width border."

why shouldn't use width / height border?

i suppose csslint trying enforce set of practices around reader not having understand implications of box model. @ end of day, understand box model entirely , understand css produces "actual" width / height of 52px perhaps trying guard against misunderstanding.

personally i'd ignore it. "warning" rather error , therefore subjective.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -