Add layout attribute snippets

@shailen @ebidel PTAL
In the documentation, maybe explain why `display: block` is needed?