• Layout的技巧必須了解normal flow, float, position, display及overflow屬性.

Overflow

This property only affects content that is overflowing a block container element in its inline progression direction (not text overflowing at the bottom of a box, for example). Text can overflow when it is prevented from wrapping (e.g., due to ‘white-space:nowrap’) or a single word being too long to fit.

overflow

  • 元素的寬度或字的長度超過容器的邊界
  • overflow不適用cjk文字

word-wrap vs word-break

  • The W3 specification that talks about these seem to suggest that word-break: break-all is for requiring a particular behaviour with CJK (Chinese, Japanese, and Korean) text, whereas word-wrap: break-word is the more general, non-CJK-aware, behaviour

this is a very looooooooooooooooooooooooooooooooooooooooooong word.

A "disaster." A failure to confront "thugs." A failure to prepare despite plenty of warning.

These are descriptions of how Baltimore handled riots Monday night, coming from local officials and some law enforcement experts.

Assessing the streets that looked like a war zone Tuesday morning, some community leaders accused Mayor Stephanie Rawlings-Blake of letting violence take over.

"I think it was a disaster," said Delegate Jill Carter, who represents Baltimore in Maryland's House of Delegates, the lower chamber of the state legislature.

"Too much destruction was apparently allowed to happen. I mean, if they knew in advance that this was going to happen when school let out, then I'm not sure why there wasn't some effort to go into the schools, to maybe do something to hold students longer, to do something to prevent it rather than let it happen."

Baltimore has faced repeated protests over the case of 25-year-old Freddie Gray, who died while in police custody.

Freddie Gray funeral draws White House officials, Eric Garner's family

The spark that ignited Monday's pandemonium probably started with high school students on social media, who were discussing a "purge," a reference to a film in which laws are suspended.

Many people knew "very early on" that there was "a lot of energy behind this purge movement," Baltimore City Councilman Nick Mosby said Tuesday. "It was a metaphor for, 'Let's go out and make trouble.'"