It's not logical, so don't be too hard on yourself. You need to give it a height and...
Note that you are not allowed to embed any font in a website. You need to check the license first...
You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
When using Rails to truncate strings, you may end up with strings that are still too long for their container...
You want Photoshop to always open files with "full" (100%) zoom and not try to fit them to your screen...
Twitter's Bootstrap CSS blueprint as a jQuery UI theme. Even if you don't want to use Bootstrap as...
I have no idea how it's supposed to work (or why the don't have a print CSS), but...
Firefox, Opera and Internet Explorer will repeat elements with position: fixed on every printed page (see attached example).
Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...
A pull quote is a typographical technique in which an excerpt or quote from an article is duplicated within the...
When you print out a HTML pages, all raster images (like PNGs) will appear aliased. This is because a printer...
Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...
A list of CSS vendor-prefixes.
List of non-standard CSS attributes that change how the browser resamples scaled images. Only use them if you know...
For university I have to stay up-to-date with lecture documents. Since my university doesn't offer RSS feeds...
If you turn on stylesheet caching, it might happen that stylesheets from different locations with different relative pathes will be...
If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...
Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...
If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...