zencitta / 261854162

Notes
0 stars 0 forks source link

CSS #8

Open zencitta opened 8 years ago

zencitta commented 8 years ago

box-sizing: border-box; Specify that <div> elements should have padding and border included in the element's total width and height:

zencitta commented 8 years ago

Both em and rem are flexible, scalable units which are translated by the browser into pixel values, depending on the font size settings in your design.

zencitta commented 8 years ago

rem idea is good, but in practice is not very nice. cause when scale up/down the font may get too big/small. A proposed practice is too use rem for module, but rm for element within module.

zencitta commented 8 years ago
zencitta commented 8 years ago

word-break:break-all break a word into multiple lines if a single word is too long