css: add text before or after

by prettyscripts on 2011-12-19 12:09:00 • Leave a comment »

css

use :before and :after psuedo elements with css property content. eg, to separate a list of items with '|': li:after { content: ' | '; } li:last-child:after { content: ''; } note line 2: no separater after the last item in the list. more »

Tags: content, css, text

b2evo: change default empty text

by prettyscripts on 2010-09-27 11:35:59 • Leave a comment »

phpb2evolution

when there's nothing to display or when there's nothing in search result, the following message is displayed:sorry, there's nothing to display... to change this text, locate display_if_empty() in template and add a new parameter, so it looks like… more »

Tags: b2evo, empty, text

dummy / random text generator

by prettyscripts on 2008-11-17 11:47:55 • Leave a comment »

freetool

need some dummy / random text as content prototypes but don’t want to use text like 'content here' or 'blah blah blah'? very often you see some random dummy text beginning with Lorem ipsum...' try this lorem ipsum generator to generate paragraphs and l… more »

Tags: text, tool

css: do not wrap text

by prettyscripts on 2008-02-05 11:32:33 • Leave a comment »

css

by default, texts are wrapped to the next line. to disable text wrapping inside an element, set the css property white-space to nowrap. .something { white-space: nowrap; } more »

Tags: css, text, wrap