Archive for the 'Web Development' Category

Textpad Regular Expressions

TextPad is a great editor, been using it for years, but never really used it to it’s full potential. Recently I needed to do some find/replace work in some huge SQL and CSV files – huge enough to make manual editing impossible – so I had to start using Textpad’s Regular Expression capabilities. Here are [...]

Centre and float a div over page content with CSS – no hacks, cross browser

Problem If you need to center a div (or any another block element) over the rest of the content in a page, and you need it to be cross-browser and valid (CSS and XHTML)… Solution Try the following CSS in your stylesheet or page head: #cdiv { position:absolute; /* important. */ left:50%; /*important if you [...]