search page style and text truncation helper