Ruslan Ulanov’s Codeshack

The developer’s notebook

Archive for the ‘web’ tag

CSS property: text-overflow

leave a comment

A better way to display lines that are way too long to fit in one line:

.longline {
  width: 200px; /* width is required */
  white-space: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  text-overflow: ellipsis;

Written by Ruslan Ulanov

November 18th, 2010 at 2:43 am

Posted in CSS

Tagged with ,

Fixing IE6/IE7 style issues

one comment

Check out Cascading Style Sheet Compatibility in Internet Explorer 7 article at MSDN.

It explains how to address IE7 compatibility issues in CSS.
In short, there were several bugs in CSS parser of IE6. Some CSS constructs (filters) that were applied by IE6 are ignored by IE7 and above – like “* html”. We could take advantage of these broken filters to create IE6-specific rules.

Read the rest of this entry »

Written by Ruslan Ulanov

May 27th, 2008 at 7:40 pm

Posted in CSS,HTML

Tagged with