Tag: tips

  • 100% height in most browsers

    http://codesnippets.joyent.com/posts/show/938 /* commented backslash hack \*/ html, body{height:100%;} /* end hack */ html,body {margin:0;padding:0} #outer{min-height:100%;height:auto;background:#ffffcc} * html #outer{height:100%;}/* ie6 and under*/

  • Indenting the second line in HTML/CSS

    http://codingforums.com/showthread.php?t=75685 This is a quick, elegant, simple way to indent the second line of an HTML element using CSS. The relevant code is basically: [some element] { padding-left: 1em; text-indent: -1em; } You can use it to manipulate most html elements.