What’s the difference between the HTML width / height attribute and the CSS width / height property on the img element?

A hot debate about the subject can be found here: Width attribute for image tag versus CSS To sum it up: The gain from declaring a width value and an height value (which may not be the original physical dimensions of the image) or from css declarations (like width: [valueX]; height: [valueY];) is that it …

Read more

SVN pre-commit hook for avoiding changes to tags subdirectories

I don’t have enough reputation to “comment” on Raim’s answer above, but his worked great, with one exception, his grep pattern is wrong. I simply used the below as my pre-commit hook (I didn’t have an existing one, you’d need to merge in that case): #!/bin/sh REPOS=”$1″ TXN=”$2″ SVNLOOK=/opt/local/bin/svnlook # Committing to tags is not …

Read more

git fatal:No tags can describe

I just ran into this error with git version 2.8.3 and command git describe –abbrev=0. The problem was that while the tag existed in the origin and my local repository was up to date, the tag did not have a commit message. The error was resolved after I re-tagged the commit with a tag message: …

Read more

POST vs post, GET vs get

W3C has tended towards lowercase for attribute names and values for a while. For example section 4.11 of the xhtml 1.0 standard in 2002: 4.11. Attributes with pre-defined value sets HTML 4 and XHTML both have some attributes that have pre-defined and limited sets of values (e.g. the type attribute of the input element). In …

Read more

How to set one CSS rule for two tags?

Separate the selectors with a comma: .footer #one .flag li .drop_down form div, .footer #two .flag li .drop_down form div { /* Rules */ } From the selectors level 3 spec: A comma-separated list of selectors represents the union of all elements selected by each of the individual selectors in the list. (A comma is …

Read more