Checkboxes and Vertical Text Alignment

You set the vertical-align on the checkbox, not the parent div or the text. Intuitive. Works in Firefox and IE.

<style>
* {
font-size: 10px;
}
#cb {
vertical-align: text-bottom;
_vertical-align: middle;
padding: 0 !important;

Posted at 3pm on 10/02/08 | no comments | Filed Under: css read on

mod_rewrite During Site Maintenance by IP Address

If you are performing site maintenance, you can redirect all users to a maintenance page while letting yourself through by IP address:

.htaccess

# If user IP is NOT 123.123.123.123, then redirect to maintenance.html
# (Don't forget to escape the dots)
RewriteCond %{REMOTE_ADDR} !123\.123\.123\.123
RewriteRule .* /maintenance.html [L]
Posted at 2pm on 08/19/08 | no comments | Filed Under: apache, admin read on

About

You aren’t supposed to be seeing this page. I use this to feed items into my Google Reader shared items.

Categories