Wednesday, April 16, 2008

Regular Expressions

Does it ever strike anyone else as odd that regular expressions are like Microsoft Office? (Except much more useful and less aggravating) I mean, 95% of regular expressions use only 5% of the regular expression syntax, meaning that there's enough time between looking up a particular syntactical construct that you forget it and have to look it up again. My two favorite reg exp tools out there, though I'm sure there are more:

Monday, April 07, 2008

Internet Explorer 7, Clears and Floats?

Working on a project, I'm have a form, where labels (containing fields) are all floated. In order to force a label to a new line, I put a class on it with "clear: left", but that, for some reason, causes the words to be smushed to the left. If there's a label text with a space in it, IE7 renders it as
first
second
instead of
first second

Anyone run into this before? I'm not css problem savvy enough to know what to Google for. I ended up just putting br's with a "clear: both" class on them in between rows, but it's not as clean as it was before.