Eki 30
- Add borders to identify containers. “Use plenty of test styles like extra borders or background colors when building your documents or debugging layout issues.
div { border:1px red dashed; }works like a charm. There are also bookmarklets that apply borders and do other things for you.” You can also use* { border: 1px solid #ff0000; }. [Chric Casciano]. Adding a border to specific elements can help identify overlap and extra white space that might not otherwise be obvious. [CSS Crib Sheet]
* { border: 1px solid #f00; }
- Check for closed elements first when debugging. “If you ever get frustrated because it seemed like you changed one minor thing, only to have your beautiful holy-grail layout break, it might be because of an unclosed element. [10 CSS Tips]
Kaynak: Smashingmagazine
Yorum Yazın
Yorum yapmak için giriş yapmalısınız.