Method:
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
Really long strings of text will never flow into the container because they always flow away from the container.
Performance is dramatically improved because a 9999px box is not drawn. Noticeably so in animations on the iPad 1.
Why use conditional stylesheets? You got problems, they need fixin' Keeps your code hack-free and valid Keeps your main stylesheet clean Perfectly acceptable technique, sanctioned by Microsoft And remember, these conditional tags don't have to be used only for CSS. You could load JavaScript, or even use them down in the content of your site to display special IE-specific messages. Target ALL VERSIONS of IE <!--[if IE]> <link rel="stylesheet" type="text/css" href="all-ie-only.css" /> <![endif]--> Target everything EXCEPT IE <!--[if !IE]><!--> <link rel="stylesheet" type="text/css" href="not-ie.css" /> <!--<![endif]--> Target IE 7 ONLY <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="ie7.css"> <![endif]--> Target IE 6 ONLY <!--[if IE 6]> <link rel=...
Comments
Post a Comment